mirror of
https://github.com/python/cpython.git
synced 2025-11-01 02:38:53 +00:00
Issue #17177: Stop using imp in distutils
This commit is contained in:
parent
7822e123c4
commit
61c3556c14
7 changed files with 26 additions and 22 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue