Skip to content

Forward USERPROFILE by default on Windows #519

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 30, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Not released yet

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

2.7.0
-----
Expand Down
1 change: 1 addition & 0 deletions tests/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -864,6 +864,7 @@ def test_passenv_as_multiline_list(self, tmpdir, newconfig, monkeypatch, plat):
assert "COMSPEC" in envconfig.passenv
assert "TEMP" in envconfig.passenv
assert "TMP" in envconfig.passenv
assert "USERPROFILE" in envconfig.passenv
else:
assert "TMPDIR" in envconfig.passenv
assert "PATH" in envconfig.passenv
Expand Down
1 change: 1 addition & 0 deletions tox/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,7 @@ def passenv(testenv_config, value):
passenv.add("COMSPEC") # needed for distutils cygwincompiler
passenv.add("TEMP")
passenv.add("TMP")
passenv.add("USERPROFILE") # needed for `os.path.expanduser()`.
else:
passenv.add("TMPDIR")
for spec in value:
Expand Down