summaryrefslogtreecommitdiff
path: root/Lib/distutils/tests/test_install_lib.py
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2014-02-08 11:51:18 -0500
committerR David Murray <rdmurray@bitdance.com>2014-02-08 11:51:18 -0500
commita055d4d797b347ad45b2becdf5b8ec86dc135f20 (patch)
treed2a97624b5a31dea7b6be6398e95a9430cf1dd42 /Lib/distutils/tests/test_install_lib.py
parent37b69c6a9e207f93e6a3184bde8d434c81777996 (diff)
parent36c69903355c4b54119021ae16f844bb2f7e3942 (diff)
downloadcpython-a055d4d797b347ad45b2becdf5b8ec86dc135f20.tar.gz
Merge #19772: Do not mutate message when downcoding to 7bit.
Diffstat (limited to 'Lib/distutils/tests/test_install_lib.py')
-rw-r--r--Lib/distutils/tests/test_install_lib.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/Lib/distutils/tests/test_install_lib.py b/Lib/distutils/tests/test_install_lib.py
index d0dfca00d7..40dd1a95a6 100644
--- a/Lib/distutils/tests/test_install_lib.py
+++ b/Lib/distutils/tests/test_install_lib.py
@@ -1,7 +1,7 @@
"""Tests for distutils.command.install_data."""
import sys
import os
-import imp
+import importlib.util
import unittest
from distutils.command.install_lib import install_lib
@@ -44,8 +44,10 @@ class InstallLibTestCase(support.TempdirManager,
f = os.path.join(project_dir, 'foo.py')
self.write_file(f, '# python file')
cmd.byte_compile([f])
- pyc_file = imp.cache_from_source('foo.py', debug_override=True)
- pyo_file = imp.cache_from_source('foo.py', debug_override=False)
+ pyc_file = importlib.util.cache_from_source('foo.py',
+ debug_override=True)
+ pyo_file = importlib.util.cache_from_source('foo.py',
+ debug_override=False)
self.assertTrue(os.path.exists(pyc_file))
self.assertTrue(os.path.exists(pyo_file))