Skip to content

Commit

Permalink
Add test capturing failure. Ref #3002.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Jan 6, 2022
1 parent 4a5a4dd commit 387073f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions setuptools/tests/test_distutils_adoption.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 387073f

Please sign in to comment.