summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2020-08-13 21:49:25 -0400
committerJason R. Coombs <jaraco@jaraco.com>2020-08-13 21:49:25 -0400
commit4837f218ea05a304880f8448e27fe0affad3a1a5 (patch)
tree259952c3445664d47b69c1559c0a5ac0e581996e
parent74e476129958dfdf84b88a732fea1dd5ff7a35e6 (diff)
downloadpython-setuptools-git-4837f218ea05a304880f8448e27fe0affad3a1a5.tar.gz
Update tests to reflect new expectation.
-rw-r--r--setuptools/tests/test_distutils_adoption.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/setuptools/tests/test_distutils_adoption.py b/setuptools/tests/test_distutils_adoption.py
index daccc473..8edd3f9b 100644
--- a/setuptools/tests/test_distutils_adoption.py
+++ b/setuptools/tests/test_distutils_adoption.py
@@ -48,15 +48,15 @@ def test_distutils_stdlib(venv):
"""
Ensure stdlib distutils is used when appropriate.
"""
- assert venv.name not in find_distutils(venv, env=dict()).split(os.sep)
+ env = dict(SETUPTOOLS_USE_DISTUTILS='stdlib')
+ assert venv.name not in find_distutils(venv, env=env).split(os.sep)
def test_distutils_local_with_setuptools(venv):
"""
Ensure local distutils is used when appropriate.
"""
- env = dict(SETUPTOOLS_USE_DISTUTILS='local')
- loc = find_distutils(venv, imports='setuptools, distutils', env=env)
+ loc = find_distutils(venv, imports='setuptools, distutils', env=dict())
assert venv.name in loc.split(os.sep)
@@ -66,5 +66,4 @@ def test_distutils_local(venv):
Even without importing, the setuptools-local copy of distutils is
preferred.
"""
- env = dict(SETUPTOOLS_USE_DISTUTILS='local')
- assert venv.name in find_distutils(venv, env=env).split(os.sep)
+ assert venv.name in find_distutils(venv, env=dict()).split(os.sep)