diff options
author | Brett Cannon <brett@python.org> | 2021-04-06 15:56:57 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-06 15:56:57 (GMT) |
commit | 57c6cb5100d19a0e0218c77d887c3c239c9ce435 (patch) | |
tree | 8e193c0bc12f476821639c8363d280ef9d604271 /Lib/test/test_importlib/test_api.py | |
parent | efccff9ac84009ef48e8cb22548ce80940f76533 (diff) | |
download | cpython-57c6cb5100d19a0e0218c77d887c3c239c9ce435.zip cpython-57c6cb5100d19a0e0218c77d887c3c239c9ce435.tar.gz cpython-57c6cb5100d19a0e0218c77d887c3c239c9ce435.tar.bz2 |
bpo-42135: Deprecate implementations of find_module() and find_loader() (GH-25169)
Diffstat (limited to 'Lib/test/test_importlib/test_api.py')
-rw-r--r-- | Lib/test/test_importlib/test_api.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/test_importlib/test_api.py b/Lib/test/test_importlib/test_api.py index 8344fb0..763b2ad 100644 --- a/Lib/test/test_importlib/test_api.py +++ b/Lib/test/test_importlib/test_api.py @@ -440,9 +440,9 @@ class StartupTests: with self.subTest(name=name): self.assertTrue(hasattr(module, '__loader__'), '{!r} lacks a __loader__ attribute'.format(name)) - if self.machinery.BuiltinImporter.find_module(name): + if self.machinery.BuiltinImporter.find_spec(name): self.assertIsNot(module.__loader__, None) - elif self.machinery.FrozenImporter.find_module(name): + elif self.machinery.FrozenImporter.find_spec(name): self.assertIsNot(module.__loader__, None) def test_everyone_has___spec__(self): @@ -450,9 +450,9 @@ class StartupTests: if isinstance(module, types.ModuleType): with self.subTest(name=name): self.assertTrue(hasattr(module, '__spec__')) - if self.machinery.BuiltinImporter.find_module(name): + if self.machinery.BuiltinImporter.find_spec(name): self.assertIsNot(module.__spec__, None) - elif self.machinery.FrozenImporter.find_module(name): + elif self.machinery.FrozenImporter.find_spec(name): self.assertIsNot(module.__spec__, None) |