Kaydet (Commit) ec99568c authored tarafından Benjamin Peterson's avatar Benjamin Peterson

fix possible error

üst fa1e21cf
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment