mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
Use assertIsNone. Thanks Terry Reedy.
This commit is contained in:
parent
591c1cca32
commit
b10951549b
9 changed files with 11 additions and 11 deletions
|
@ -97,7 +97,7 @@ class LifetimeTests(unittest.TestCase):
|
|||
del lock
|
||||
support.gc_collect()
|
||||
self.assertNotIn(name, _bootstrap._module_locks)
|
||||
self.assertIs(wr(), None)
|
||||
self.assertIsNone(wr())
|
||||
|
||||
def test_all_locks(self):
|
||||
support.gc_collect()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue