We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a5a4dd commit 387073fCopy full SHA for 387073f
1 file changed
setuptools/tests/test_distutils_adoption.py
@@ -89,3 +89,13 @@ def test_distutils_local(venv):
89
env = dict(SETUPTOOLS_USE_DISTUTILS='local')
90
assert venv.name in find_distutils(venv, env=env).split(os.sep)
91
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