Commit ff3d39fa authored by Serhiy Storchaka's avatar Serhiy Storchaka Committed by Pablo Galindo

bpo-36109: Fix random test_descr failure. (GH-12044)

parent b84df2d7
...@@ -4325,7 +4325,11 @@ order (MRO) for bases """ ...@@ -4325,7 +4325,11 @@ order (MRO) for bases """
def __hash__(self): def __hash__(self):
return hash('attr') return hash('attr')
def __eq__(self, other): def __eq__(self, other):
try:
del C.attr del C.attr
except AttributeError:
# possible race condition
pass
return 0 return 0
class Descr(object): class Descr(object):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment