diff options
Diffstat (limited to 'Lib/importlib/test/extension/test_loader.py')
-rw-r--r-- | Lib/importlib/test/extension/test_loader.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/importlib/test/extension/test_loader.py b/Lib/importlib/test/extension/test_loader.py index f961a63..157a3b6 100644 --- a/Lib/importlib/test/extension/test_loader.py +++ b/Lib/importlib/test/extension/test_loader.py @@ -1,4 +1,4 @@ -import importlib +from importlib import _bootstrap from . import util as ext_util from .. import abc from .. import util @@ -12,7 +12,7 @@ class LoaderTests(abc.LoaderTests): """Test load_module() for extension modules.""" def load_module(self, fullname): - loader = importlib._ExtensionFileLoader(ext_util.NAME, + loader = _bootstrap._ExtensionFileLoader(ext_util.NAME, ext_util.FILEPATH, False) return loader.load_module(fullname) @@ -25,7 +25,7 @@ class LoaderTests(abc.LoaderTests): self.assertEqual(getattr(module, attr), value) self.assert_(ext_util.NAME in sys.modules) self.assert_(isinstance(module.__loader__, - importlib._ExtensionFileLoader)) + _bootstrap._ExtensionFileLoader)) def test_package(self): # Extensions are not found in packages. |