Skip to content

Commit

Permalink
fix possible error
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminp committed Aug 19, 2008
1 parent fa1e21c commit ec99568
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Lib/test/test_threading.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,10 @@ def check(_, w, msg):

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)
Expand Down

0 comments on commit ec99568

Please sign in to comment.