diff options
author | Brett Cannon <brett@python.org> | 2013-06-15 14:07:21 -0400 |
---|---|---|
committer | Brett Cannon <brett@python.org> | 2013-06-15 14:07:21 -0400 |
commit | df960682a5d2d224627c0aaad77279f749af70ba (patch) | |
tree | 334e020eb89f2903118021e104d862c4f33067f4 /Lib/test/test_py_compile.py | |
parent | fc06443c980e8ac5ebc2a1a6950cd7a85c49b5aa (diff) | |
download | cpython-git-df960682a5d2d224627c0aaad77279f749af70ba.tar.gz |
Issue #17177: Stop using imp with py_compile
Diffstat (limited to 'Lib/test/test_py_compile.py')
-rw-r--r-- | Lib/test/test_py_compile.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_py_compile.py b/Lib/test/test_py_compile.py index 9f341bdf8c..2ad9c3a000 100644 --- a/Lib/test/test_py_compile.py +++ b/Lib/test/test_py_compile.py @@ -1,4 +1,4 @@ -import imp +import importlib.util import os import py_compile import shutil @@ -14,7 +14,7 @@ class PyCompileTests(unittest.TestCase): self.directory = tempfile.mkdtemp() self.source_path = os.path.join(self.directory, '_test.py') self.pyc_path = self.source_path + 'c' - self.cache_path = imp.cache_from_source(self.source_path) + self.cache_path = importlib.util.cache_from_source(self.source_path) self.cwd_drive = os.path.splitdrive(os.getcwd())[0] # In these tests we compute relative paths. When using Windows, the # current working directory path and the 'self.source_path' might be |