Skip to content

Commit

Permalink
Merge test with fix. Ref #3002.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Jan 6, 2022
2 parents 2504699 + 387073f commit 049d83c
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)

1 comment on commit 049d83c

@jaraco
Copy link
Member Author

@jaraco jaraco commented on 049d83c Jan 6, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's an additional failure on Windows, found in CI, presumably fixed in 6a1a7e6.

Please sign in to comment.