summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_threading.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2011-01-06 05:34:17 (GMT)
committerRaymond Hettinger <python@rcn.com>2011-01-06 05:34:17 (GMT)
commit7beae8a0d567022f959c70f0be367ced7af65808 (patch)
treea84cff32b0d73598d3bebb1e8c0ad97ad197792a /Lib/test/test_threading.py
parent90a4b3162e6a6c39519d5b3c1be39accbf568db6 (diff)
downloadcpython-7beae8a0d567022f959c70f0be367ced7af65808.zip
cpython-7beae8a0d567022f959c70f0be367ced7af65808.tar.gz
cpython-7beae8a0d567022f959c70f0be367ced7af65808.tar.bz2
Issue 10825: Minor updates to the test suite.
Diffstat (limited to 'Lib/test/test_threading.py')
-rw-r--r--Lib/test/test_threading.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_threading.py b/Lib/test/test_threading.py
index 46d2f47..ecbbdbf 100644
--- a/Lib/test/test_threading.py
+++ b/Lib/test/test_threading.py
@@ -396,7 +396,7 @@ class ThreadTests(BaseTestCase):
weak_cyclic_object = weakref.ref(cyclic_object)
cyclic_object.thread.join()
del cyclic_object
- self.assertEqual(None, weak_cyclic_object(),
+ self.assertIsNone(weak_cyclic_object(),
msg=('%d references still around' %
sys.getrefcount(weak_cyclic_object())))
@@ -404,7 +404,7 @@ class ThreadTests(BaseTestCase):
weak_raising_cyclic_object = weakref.ref(raising_cyclic_object)
raising_cyclic_object.thread.join()
del raising_cyclic_object
- self.assertEqual(None, weak_raising_cyclic_object(),
+ self.assertIsNone(weak_raising_cyclic_object(),
msg=('%d references still around' %
sys.getrefcount(weak_raising_cyclic_object())))