diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-03-14 08:28:59 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-03-14 08:28:59 (GMT) |
commit | d351827b0b7465b14ed5eeac4d37c755d1f93982 (patch) | |
tree | bd8288b982f0bc23f45a3e65e5133f50e4f26b7a /Lib/test/test_threading_local.py | |
parent | aac1dd04291b56a88e54287b422d27b47f22bbfe (diff) | |
download | cpython-d351827b0b7465b14ed5eeac4d37c755d1f93982.zip cpython-d351827b0b7465b14ed5eeac4d37c755d1f93982.tar.gz cpython-d351827b0b7465b14ed5eeac4d37c755d1f93982.tar.bz2 |
Issue #20556: Used specific assert methods in threading tests.
Diffstat (limited to 'Lib/test/test_threading_local.py')
-rw-r--r-- | Lib/test/test_threading_local.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_threading_local.py b/Lib/test/test_threading_local.py index b161315..e53400c 100644 --- a/Lib/test/test_threading_local.py +++ b/Lib/test/test_threading_local.py @@ -196,7 +196,7 @@ class ThreadLocalTest(unittest.TestCase, BaseLocalTest): wr = weakref.ref(x) del x gc.collect() - self.assertIs(wr(), None) + self.assertIsNone(wr()) class PyThreadingLocalTest(unittest.TestCase, BaseLocalTest): _local = _threading_local.local |