diff options
author | Brett Cannon <brett@python.org> | 2013-06-15 16:59:53 (GMT) |
---|---|---|
committer | Brett Cannon <brett@python.org> | 2013-06-15 16:59:53 (GMT) |
commit | 61c3556c14d52e553ca5eecc4e178124fac75167 (patch) | |
tree | ecadf6dc78159a42de1f2173599e2eb9a7c29254 /Lib/distutils/tests/test_install.py | |
parent | 7822e123c42b63c5819e0b6cca6f960b1ce55547 (diff) | |
download | cpython-61c3556c14d52e553ca5eecc4e178124fac75167.zip cpython-61c3556c14d52e553ca5eecc4e178124fac75167.tar.gz cpython-61c3556c14d52e553ca5eecc4e178124fac75167.tar.bz2 |
Issue #17177: Stop using imp in distutils
Diffstat (limited to 'Lib/distutils/tests/test_install.py')
-rw-r--r-- | Lib/distutils/tests/test_install.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/distutils/tests/test_install.py b/Lib/distutils/tests/test_install.py index e9b2642..42bd269 100644 --- a/Lib/distutils/tests/test_install.py +++ b/Lib/distutils/tests/test_install.py @@ -1,7 +1,6 @@ """Tests for distutils.command.install.""" import os -import imp import sys import unittest import site @@ -193,7 +192,8 @@ class InstallTestCase(support.TempdirManager, f.close() found = [os.path.basename(line) for line in content.splitlines()] - expected = ['hello.py', 'hello.%s.pyc' % imp.get_tag(), 'sayhi', + expected = ['hello.py', 'hello.%s.pyc' % sys.implementation.cache_tag, + 'sayhi', 'UNKNOWN-0.0.0-py%s.%s.egg-info' % sys.version_info[:2]] self.assertEqual(found, expected) |