Use assertIsNone. Thanks Terry Reedy.

This commit is contained in:
Eric V. Smith 2012-06-28 06:15:01 -04:00
parent 591c1cca32
commit b10951549b
9 changed files with 11 additions and 11 deletions

View file

@ -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()