aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/importlib/test/source/test_source_encoding.py
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2009-02-21 05:41:15 +0000
committerBrett Cannon <bcannon@gmail.com>2009-02-21 05:41:15 +0000
commit91cf882b367644ece7f121cd22fc43c2f439a2d5 (patch)
tree29ed464e53b9c2aa142077091f71e8c2c96d8665 /Lib/importlib/test/source/test_source_encoding.py
parent0515619dbc0c11818fa15785e40491cf8d01042f (diff)
downloadcpython-91cf882b367644ece7f121cd22fc43c2f439a2d5.tar.gz
cpython-91cf882b367644ece7f121cd22fc43c2f439a2d5.zip
Refactor source and bytecode file loaders in importlib so that there
are source-only and source/bytecode loaders.
Diffstat (limited to 'Lib/importlib/test/source/test_source_encoding.py')
-rw-r--r--Lib/importlib/test/source/test_source_encoding.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/importlib/test/source/test_source_encoding.py b/Lib/importlib/test/source/test_source_encoding.py
index 5ffdf8f7fd6..9e9c7e87012 100644
--- a/Lib/importlib/test/source/test_source_encoding.py
+++ b/Lib/importlib/test/source/test_source_encoding.py
@@ -35,7 +35,7 @@ class EncodingTest(unittest.TestCase):
with source_util.create_modules(self.module_name) as mapping:
with open(mapping[self.module_name], 'wb')as file:
file.write(source)
- loader = importlib._PyFileLoader(self.module_name,
+ loader = importlib.PyPycFileLoader(self.module_name,
mapping[self.module_name], False)
return loader.load_module(self.module_name)
@@ -96,7 +96,7 @@ class LineEndingTest(unittest.TestCase):
with source_util.create_modules(module_name) as mapping:
with open(mapping[module_name], 'wb') as file:
file.write(source)
- loader = importlib._PyFileLoader(module_name, mapping[module_name],
+ loader = importlib.PyPycFileLoader(module_name, mapping[module_name],
False)
return loader.load_module(module_name)