benjamin.peterson
2008-08-19 14:32:56 UTC
Author: benjamin.peterson
Date: Tue Aug 19 16:32:56 2008
New Revision: 65852
Log:
fix possible error
Modified:
python/branches/py3k/Lib/test/test_threading.py
Modified: python/branches/py3k/Lib/test/test_threading.py
==============================================================================
--- python/branches/py3k/Lib/test/test_threading.py (original)
+++ python/branches/py3k/Lib/test/test_threading.py Tue Aug 19 16:32:56 2008
@@ -329,7 +329,10 @@
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)
Date: Tue Aug 19 16:32:56 2008
New Revision: 65852
Log:
fix possible error
Modified:
python/branches/py3k/Lib/test/test_threading.py
Modified: python/branches/py3k/Lib/test/test_threading.py
==============================================================================
--- python/branches/py3k/Lib/test/test_threading.py (original)
+++ python/branches/py3k/Lib/test/test_threading.py Tue Aug 19 16:32:56 2008
@@ -329,7 +329,10 @@
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)