Skip to content

Commit 387073f

Browse files
committed
Add test capturing failure. Ref #3002.
1 parent 4a5a4dd commit 387073f

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

setuptools/tests/test_distutils_adoption.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,3 +89,13 @@ def test_distutils_local(venv):
8989
env = dict(SETUPTOOLS_USE_DISTUTILS='local')
9090
assert venv.name in find_distutils(venv, env=env).split(os.sep)
9191
assert count_meta_path(venv, env=env) <= 1
92+
93+
94+
def test_pip_import(venv):
95+
"""
96+
Ensure pip can be imported with the hack installed.
97+
Regression test for #3002.
98+
"""
99+
env = dict(SETUPTOOLS_USE_DISTUTILS='local')
100+
cmd = ['python', '-c', 'import pip']
101+
popen_text(venv.run)(cmd, env=env)

0 commit comments

Comments
 (0)