diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2021-03-21 04:03:10 -0400 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2021-03-21 04:44:08 -0400 |
| commit | 0c485af05591ba869b8adb96802d1cf4b49fe28d (patch) | |
| tree | 1d1873215973daa55ec54fcf32da19f004541cab /setuptools | |
| parent | cb962021c53b7130bf0a1792f75678efcc0724be (diff) | |
| download | python-setuptools-git-0c485af05591ba869b8adb96802d1cf4b49fe28d.tar.gz | |
Cast values to str and retain other environ vars for Windows' sake
Diffstat (limited to 'setuptools')
| -rw-r--r-- | setuptools/tests/test_develop.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/setuptools/tests/test_develop.py b/setuptools/tests/test_develop.py index 0dea40bd..a0e84b9a 100644 --- a/setuptools/tests/test_develop.py +++ b/setuptools/tests/test_develop.py @@ -231,7 +231,7 @@ class TestNamespaces: # install the workaround self.install_workaround(site_packages) - env = dict(PYTHONPATH=site_packages) + env = dict(os.environ, PYTHONPATH=str(site_packages)) cmd = [ sys.executable, '-m', 'pip', @@ -246,4 +246,6 @@ class TestNamespaces: # now run 'sample' with the prefix on the PYTHONPATH bin = 'Scripts' if platform.system() == 'Windows' else 'bin' exe = prefix / bin / 'sample' + if sys.version_info < (3, 7) and platform.system() == 'Windows': + exe = str(exe) subprocess.check_call([exe], env=env) |
