summaryrefslogtreecommitdiffstats
path: root/Lib/importlib/test/frozen
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/importlib/test/frozen')
-rw-r--r--Lib/importlib/test/frozen/test_finder.py4
-rw-r--r--Lib/importlib/test/frozen/test_loader.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/Lib/importlib/test/frozen/test_finder.py b/Lib/importlib/test/frozen/test_finder.py
index 2541019..8d8a8af 100644
--- a/Lib/importlib/test/frozen/test_finder.py
+++ b/Lib/importlib/test/frozen/test_finder.py
@@ -1,4 +1,4 @@
-import importlib
+from importlib import machinery
from ..builtin import test_finder
from .. import support
@@ -10,7 +10,7 @@ class FinderTests(test_finder.FinderTests):
"""Test finding frozen modules."""
def find(self, name, path=None):
- finder = importlib.FrozenImporter()
+ finder = machinery.FrozenImporter
return finder.find_module(name, path)
diff --git a/Lib/importlib/test/frozen/test_loader.py b/Lib/importlib/test/frozen/test_loader.py
index b37ae7f..95854f2 100644
--- a/Lib/importlib/test/frozen/test_loader.py
+++ b/Lib/importlib/test/frozen/test_loader.py
@@ -1,4 +1,4 @@
-import importlib
+from importlib import machinery
from ..builtin import test_loader
@@ -6,7 +6,7 @@ class LoaderTests(test_loader.LoaderTests):
name = '__phello__'
load_module = staticmethod(lambda name:
- importlib.FrozenImporter().load_module(name))
+ machinery.FrozenImporter.load_module(name))
verification = {'__name__': '__phello__', '__file__': '<frozen>',
'__package__': None, '__path__': ['__phello__']}