summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2019-02-26 06:03:21 (GMT)
committerPablo Galindo <Pablogsal@gmail.com>2019-02-26 06:03:21 (GMT)
commitff3d39faa8aa28308cc5eae6843eaac514da8fd8 (patch)
tree09a6123dfff7c75983e9e931c288d836bd139dd3 /Lib
parentb84df2d7cc755b6097cfcd3b1515035844590545 (diff)
downloadcpython-ff3d39faa8aa28308cc5eae6843eaac514da8fd8.zip
cpython-ff3d39faa8aa28308cc5eae6843eaac514da8fd8.tar.gz
cpython-ff3d39faa8aa28308cc5eae6843eaac514da8fd8.tar.bz2
bpo-36109: Fix random test_descr failure. (GH-12044)
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_descr.py6
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):