[Python-3000-checkins] r65852 - python/branches/py3k/Lib/test/test_threading.py
benjamin.peterson
python-3000-checkins at python.org
Tue Aug 19 16:32:56 CEST 2008
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)
More information about the Python-3000-checkins
mailing list