summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-08-19 14:12:01 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-08-19 14:12:01 (GMT)
commitfa1e21cf965aa4ef30dc9b35d381e8c8690c59f9 (patch)
treee855019290597e3111da54e48d9182ff01a6cd77 /Lib/test
parent47bc809578f87c9ec4a264e88bb716b48573745e (diff)
downloadcpython-fa1e21cf965aa4ef30dc9b35d381e8c8690c59f9.zip
cpython-fa1e21cf965aa4ef30dc9b35d381e8c8690c59f9.tar.gz
cpython-fa1e21cf965aa4ef30dc9b35d381e8c8690c59f9.tar.bz2
make test_threading more robust for real
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_threading.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/Lib/test/test_threading.py b/Lib/test/test_threading.py
index daff8ae..d031607 100644
--- a/Lib/test/test_threading.py
+++ b/Lib/test/test_threading.py
@@ -324,14 +324,12 @@ class ThreadTests(unittest.TestCase):
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)