diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2022-01-05 23:17:45 -0500 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2022-01-05 23:17:45 -0500 |
| commit | 387073fb4eab8f6680fa4382ed008d86103cf132 (patch) | |
| tree | febb9453d4bae7cbea66164bc8e14da4bbd46b07 /setuptools/tests/test_distutils_adoption.py | |
| parent | 4a5a4ddfc432f1fc569aa5a76b2b68ebb4b2062f (diff) | |
| download | python-setuptools-git-387073fb4eab8f6680fa4382ed008d86103cf132.tar.gz | |
Add test capturing failure. Ref #3002.
Diffstat (limited to 'setuptools/tests/test_distutils_adoption.py')
| -rw-r--r-- | setuptools/tests/test_distutils_adoption.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/setuptools/tests/test_distutils_adoption.py b/setuptools/tests/test_distutils_adoption.py index 27759b1d..ced41d29 100644 --- a/setuptools/tests/test_distutils_adoption.py +++ b/setuptools/tests/test_distutils_adoption.py @@ -89,3 +89,13 @@ def test_distutils_local(venv): env = dict(SETUPTOOLS_USE_DISTUTILS='local') assert venv.name in find_distutils(venv, env=env).split(os.sep) assert count_meta_path(venv, env=env) <= 1 + + +def test_pip_import(venv): + """ + Ensure pip can be imported with the hack installed. + Regression test for #3002. + """ + env = dict(SETUPTOOLS_USE_DISTUTILS='local') + cmd = ['python', '-c', 'import pip'] + popen_text(venv.run)(cmd, env=env) |
