From: Benjamin Peterson Date: Tue, 19 Aug 2008 14:32:56 +0000 (+0000) Subject: fix possible error X-Git-Tag: v3.0b3~36 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ec99568ce4e9379aff022a2d199c98bd4a3695c5;p=thirdparty%2FPython%2Fcpython.git fix possible error --- diff --git a/Lib/test/test_threading.py b/Lib/test/test_threading.py index d0316073cb55..c6a5cf49d2a1 100644 --- a/Lib/test/test_threading.py +++ b/Lib/test/test_threading.py @@ -329,7 +329,10 @@ class ThreadTests(unittest.TestCase): t = threading.Thread() with catch_warning() as w: - del threading.__warningregistry__ + try: + del threading.__warningregistry__ + except AttributeError: + pass msg = "isDaemon() is deprecated in favor of the " \ "Thread.daemon property" check(t.isDaemon(), w, msg)