diff options
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_descr.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Lib/test/test_descr.py b/Lib/test/test_descr.py index b38cb76..fc885c5 100644 --- a/Lib/test/test_descr.py +++ b/Lib/test/test_descr.py @@ -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): |