diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2020-08-20 21:40:53 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-20 21:40:53 -0400 |
| commit | e20e85ed73fcf4cd127f11c0c2aaa1cbdb8cfbac (patch) | |
| tree | c1cc25c3fc2ce279c113cacbd48256d5f6e09612 /setuptools | |
| parent | 8d508965e49028b68e09b930a10340ba09687d35 (diff) | |
| parent | 3d404fd3268b0fb7d84916779ca2e282f4586396 (diff) | |
| download | python-setuptools-git-e20e85ed73fcf4cd127f11c0c2aaa1cbdb8cfbac.tar.gz | |
Merge pull request #2255 from pypa/bugfix/2232-adopt-distutils-default
Re-enable distutils patch by default.
Diffstat (limited to 'setuptools')
| -rw-r--r-- | setuptools/tests/test_distutils_adoption.py | 9 |
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) |
