Skip to content

Commit

Permalink
Cast values to str and retain other environ vars for Windows' sake
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Mar 21, 2021
1 parent cb96202 commit 0c485af
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion setuptools/tests/test_develop.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ def test_editable_prefix(self, tmp_path, sample_project):
# 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',
Expand All @@ -246,4 +246,6 @@ def test_editable_prefix(self, tmp_path, sample_project):
# 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)

0 comments on commit 0c485af

Please sign in to comment.