[Python-3000-checkins] r65851 - python/branches/py3k/Lib/test/test_threading.py

benjamin.peterson python-3000-checkins at python.org
Tue Aug 19 16:12:01 CEST 2008


Author: benjamin.peterson
Date: Tue Aug 19 16:12:01 2008
New Revision: 65851

Log:
make test_threading more robust for real

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:12:01 2008
@@ -324,14 +324,12 @@
                                sys.getrefcount(weak_raising_cyclic_object())))
 
     def test_pep8ified_threading(self):
-        import warnings
-
         def check(_, w, msg):
             self.assertEqual(str(w.message), msg)
 
         t = threading.Thread()
         with catch_warning() as w:
-            warnings.simplefilter("always", DeprecationWarning)
+            del threading.__warningregistry__
             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