From: Serhiy Storchaka Date: Tue, 26 Feb 2019 06:03:21 +0000 (+0200) Subject: bpo-36109: Fix random test_descr failure. (GH-12044) X-Git-Tag: v3.8.0a3~227 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ff3d39faa8aa28308cc5eae6843eaac514da8fd8;p=thirdparty%2FPython%2Fcpython.git bpo-36109: Fix random test_descr failure. (GH-12044) --- diff --git a/Lib/test/test_descr.py b/Lib/test/test_descr.py index b38cb765cdc0..fc885c5e62f2 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):