Skip to content

Commit 9111741

Browse files
authored
Merge pull request #519 from AndreLouisCaron/passenv-win32-userprofile
Forward `USERPROFILE` by default on Windows
2 parents cf1a1c0 + ee7bad9 commit 9111741

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

CHANGELOG

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ Not released yet
33

44
- #474: Start using setuptools_scm for tag based versioning.
55
- #506: With `-a`: do not show additional environments header if there are none
6+
- #518: Forward `USERPROFILE` by default on Windows.
67

78
2.7.0
89
-----

tests/test_config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -864,6 +864,7 @@ def test_passenv_as_multiline_list(self, tmpdir, newconfig, monkeypatch, plat):
864864
assert "COMSPEC" in envconfig.passenv
865865
assert "TEMP" in envconfig.passenv
866866
assert "TMP" in envconfig.passenv
867+
assert "USERPROFILE" in envconfig.passenv
867868
else:
868869
assert "TMPDIR" in envconfig.passenv
869870
assert "PATH" in envconfig.passenv

tox/config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -489,6 +489,7 @@ def passenv(testenv_config, value):
489489
passenv.add("COMSPEC") # needed for distutils cygwincompiler
490490
passenv.add("TEMP")
491491
passenv.add("TMP")
492+
passenv.add("USERPROFILE") # needed for `os.path.expanduser()`.
492493
else:
493494
passenv.add("TMPDIR")
494495
for spec in value:

0 commit comments

Comments
 (0)