mirror of
https://github.com/python/cpython.git
synced 2025-11-24 04:17:38 +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
|
|
@ -74,12 +74,12 @@ class InspectLoaderTests(unittest.TestCase):
|
|||
def test_get_code(self):
|
||||
# There is no code object.
|
||||
result = machinery.BuiltinImporter.get_code(builtin_util.NAME)
|
||||
self.assertIs(result, None)
|
||||
self.assertIsNone(result)
|
||||
|
||||
def test_get_source(self):
|
||||
# There is no source.
|
||||
result = machinery.BuiltinImporter.get_source(builtin_util.NAME)
|
||||
self.assertIs(result, None)
|
||||
self.assertIsNone(result)
|
||||
|
||||
def test_is_package(self):
|
||||
# Cannot be a package.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue