bpo-36109: Fix random test_descr failure. (GH-12044)
This commit is contained in:
parent
b84df2d7cc
commit
ff3d39faa8
|
@ -4325,7 +4325,11 @@ order (MRO) for bases """
|
|||
def __hash__(self):
|
||||
return hash('attr')
|
||||
def __eq__(self, other):
|
||||
del C.attr
|
||||
try:
|
||||
del C.attr
|
||||
except AttributeError:
|
||||
# possible race condition
|
||||
pass
|
||||
return 0
|
||||
|
||||
class Descr(object):
|
||||
|
|
Loading…
Reference in New Issue