summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-09-01 23:12:58 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-09-01 23:12:58 (GMT)
commit973e6c2cf33e326cef3717f6bddac57691e609e2 (patch)
treeacca758f92d6e5ad48d188284f01b3c025c885e6 /Lib/test
parent057dfddc8865c62507cb38c9ca444fb12856246d (diff)
downloadcpython-973e6c2cf33e326cef3717f6bddac57691e609e2.zip
cpython-973e6c2cf33e326cef3717f6bddac57691e609e2.tar.gz
cpython-973e6c2cf33e326cef3717f6bddac57691e609e2.tar.bz2
remove py3k warnings about the threading api; update docs
Reviewer: Benjamin Peterson
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_py3kwarn.py35
1 files changed, 0 insertions, 35 deletions
diff --git a/Lib/test/test_py3kwarn.py b/Lib/test/test_py3kwarn.py
index 1b487fe..8fa6135 100644
--- a/Lib/test/test_py3kwarn.py
+++ b/Lib/test/test_py3kwarn.py
@@ -272,41 +272,6 @@ class TestPy3KWarnings(unittest.TestCase):
def __hash__(self): pass
self.assertEqual(len(w.warnings), 0)
- def test_pep8ified_threading(self):
- import threading
-
- t = threading.Thread()
- with catch_warning() as w:
- msg = "isDaemon() is deprecated in favor of the " \
- "Thread.daemon property"
- self.assertWarning(t.isDaemon(), w, msg)
- w.reset()
- msg = "setDaemon() is deprecated in favor of the " \
- "Thread.daemon property"
- self.assertWarning(t.setDaemon(True), w, msg)
- w.reset()
- msg = "getName() is deprecated in favor of the " \
- "Thread.name property"
- self.assertWarning(t.getName(), w, msg)
- w.reset()
- msg = "setName() is deprecated in favor of the " \
- "Thread.name property"
- self.assertWarning(t.setName("name"), w, msg)
- w.reset()
- msg = "isAlive() is deprecated in favor of is_alive()"
- self.assertWarning(t.isAlive(), w, msg)
- w.reset()
- e = threading.Event()
- msg = "isSet() is deprecated in favor of is_set()"
- self.assertWarning(e.isSet(), w, msg)
- w.reset()
- msg = "currentThread() is deprecated in favor of current_thread()"
- self.assertWarning(threading.currentThread(), w, msg)
- w.reset()
- msg = "activeCount() is deprecated in favor of active_count()"
- self.assertWarning(threading.activeCount(), w, msg)
-
-
class TestStdlibRemovals(unittest.TestCase):