mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
bpo-36109: Fix random test_descr failure. (GH-12044)
This commit is contained in:
parent
b84df2d7cc
commit
ff3d39faa8
1 changed files with 5 additions and 1 deletions
|
|
@ -4325,7 +4325,11 @@ class Evil(object):
|
|||
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…
Add table
Add a link
Reference in a new issue