diff options
Diffstat (limited to 'Lib/importlib/test/builtin/test_finder.py')
-rw-r--r-- | Lib/importlib/test/builtin/test_finder.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/importlib/test/builtin/test_finder.py b/Lib/importlib/test/builtin/test_finder.py index 40f690e..1f6274c 100644 --- a/Lib/importlib/test/builtin/test_finder.py +++ b/Lib/importlib/test/builtin/test_finder.py @@ -35,14 +35,14 @@ class FinderTests(abc.FinderTests): def test_failure(self): assert 'importlib' not in sys.builtin_module_names loader = machinery.BuiltinImporter.find_module('importlib') - self.assertTrue(loader is None) + self.assertIs(loader, None) def test_ignore_path(self): # The value for 'path' should always trigger a failed import. with util.uncache(builtin_util.NAME): loader = machinery.BuiltinImporter.find_module(builtin_util.NAME, ['pkg']) - self.assertTrue(loader is None) + self.assertIs(loader, None) |