From ff3d39faa8aa28308cc5eae6843eaac514da8fd8 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Tue, 26 Feb 2019 08:03:21 +0200 Subject: bpo-36109: Fix random test_descr failure. (GH-12044) --- Lib/test/test_descr.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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): -- cgit v0.12