projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
88fde1a
)
make test more robust
author
Benjamin Peterson
<benjamin@python.org>
Tue, 19 Aug 2008 01:34:34 +0000
(
01:34
+0000)
committer
Benjamin Peterson
<benjamin@python.org>
Tue, 19 Aug 2008 01:34:34 +0000
(
01:34
+0000)
Lib/test/test_threading.py
patch
|
blob
|
history
diff --git
a/Lib/test/test_threading.py
b/Lib/test/test_threading.py
index 6458f7e2d3ccfd5248116561beef8131c37e104c..daff8aeab4156bac6f99742cac9a085d031604e6 100644
(file)
--- a/
Lib/test/test_threading.py
+++ b/
Lib/test/test_threading.py
@@
-324,13
+324,14
@@
class ThreadTests(unittest.TestCase):
sys.getrefcount(weak_raising_cyclic_object())))
def test_pep8ified_threading(self):
- import
threading
+ import
warnings
def check(_, w, msg):
self.assertEqual(str(w.message), msg)
t = threading.Thread()
with catch_warning() as w:
+ warnings.simplefilter("always", DeprecationWarning)
msg = "isDaemon() is deprecated in favor of the " \
"Thread.daemon property"
check(t.isDaemon(), w, msg)