mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Issue #20556: Used specific assert methods in threading tests.
This commit is contained in:
parent
20be53e5b5
commit
8c0f0c5c1e
3 changed files with 22 additions and 23 deletions
|
@ -189,7 +189,7 @@ class BaseLocalTest:
|
|||
wr = weakref.ref(x)
|
||||
del x
|
||||
gc.collect()
|
||||
self.assertIs(wr(), None)
|
||||
self.assertIsNone(wr())
|
||||
|
||||
|
||||
class ThreadLocalTest(unittest.TestCase, BaseLocalTest):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue