Skip to content

Commit

Permalink
Update tests to specify local or stdlib for stability under default v…
Browse files Browse the repository at this point in the history
…alue.
  • Loading branch information
jaraco committed Sep 2, 2020
1 parent c0085e8 commit 9e7261b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions setuptools/tests/test_distutils_adoption.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ def test_distutils_local_with_setuptools(venv):
"""
Ensure local distutils is used when appropriate.
"""
loc = find_distutils(venv, imports='setuptools, distutils', env=dict())
env = dict(SETUPTOOLS_USE_DISTUTILS='local')
loc = find_distutils(venv, imports='setuptools, distutils', env=env)
assert venv.name in loc.split(os.sep)


Expand All @@ -66,4 +67,5 @@ def test_distutils_local(venv):
Even without importing, the setuptools-local copy of distutils is
preferred.
"""
assert venv.name in find_distutils(venv, env=dict()).split(os.sep)
env = dict(SETUPTOOLS_USE_DISTUTILS='local')
assert venv.name in find_distutils(venv, env=env).split(os.sep)

0 comments on commit 9e7261b

Please sign in to comment.