mirror of
https://github.com/python/cpython.git
synced 2025-10-10 00:43:41 +00:00
Issue 10825: Minor updates to the test suite.
This commit is contained in:
parent
90a4b3162e
commit
7beae8a0d5
4 changed files with 10 additions and 10 deletions
|
@ -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())))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue