diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2020-09-02 19:27:44 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2020-09-02 19:27:44 -0400 |
commit | 9e7261b46e42591218ef3e5b6630ab5e2ea13adc (patch) | |
tree | 8cc544a40273c8f93409dc4d80a2e2992ce4dcde | |
parent | c0085e87c69629ec3cf24dfce887c0fb93fa80dd (diff) | |
download | python-setuptools-git-9e7261b46e42591218ef3e5b6630ab5e2ea13adc.tar.gz |
Update tests to specify local or stdlib for stability under default value.
-rw-r--r-- | setuptools/tests/test_distutils_adoption.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/setuptools/tests/test_distutils_adoption.py b/setuptools/tests/test_distutils_adoption.py index 8edd3f9b..a53773df 100644 --- a/setuptools/tests/test_distutils_adoption.py +++ b/setuptools/tests/test_distutils_adoption.py @@ -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) @@ -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) |