Skip to content

Commit 1f3b86f

Browse files
asottilegaborbernat
authored andcommitted
passenv PROCESSOR_ARCHITECTURE by default on windows (#742)
1 parent 36ff71d commit 1f3b86f

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

changelog/740.feature.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Forward ``PROCESSOR_ARCHITECTURE`` by default on Windows to fix
2+
``platform.machine()``.

tests/test_config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -908,6 +908,7 @@ def test_passenv_as_multiline_list(self, tmpdir, newconfig, monkeypatch, plat):
908908
assert "TEMP" in envconfig.passenv
909909
assert "TMP" in envconfig.passenv
910910
assert "NUMBER_OF_PROCESSORS" in envconfig.passenv
911+
assert "PROCESSOR_ARCHITECTURE" in envconfig.passenv
911912
assert "USERPROFILE" in envconfig.passenv
912913
assert "MSYSTEM" in envconfig.passenv
913914
else:

tox/config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -530,6 +530,7 @@ def passenv(testenv_config, value):
530530
# for `multiprocessing.cpu_count()` on Windows
531531
# (prior to Python 3.4).
532532
passenv.add("NUMBER_OF_PROCESSORS")
533+
passenv.add("PROCESSOR_ARCHITECTURE") # platform.machine()
533534
passenv.add("USERPROFILE") # needed for `os.path.expanduser()`
534535
passenv.add("MSYSTEM") # fixes #429
535536
else:

0 commit comments

Comments
 (0)