From cfb35e3dc648df758ce86a6d33851c5948faf195 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 8 Dec 2022 16:28:43 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit for more information, see https://pre-commit.ci Signed-off-by: Bernát Gábor --- docs/changelog/2629.bugfix.rst | 2 +- tests/session/cmd/test_show_config.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/changelog/2629.bugfix.rst b/docs/changelog/2629.bugfix.rst index 5838a6eaf2..24987141a5 100644 --- a/docs/changelog/2629.bugfix.rst +++ b/docs/changelog/2629.bugfix.rst @@ -1,2 +1,2 @@ Pass through ``NUMBER_OF_PROCESSORS`` on Windows as is needed for ``multiprocessing.cpu_count`` - -by :user:`gaborbernat`. \ No newline at end of file +by :user:`gaborbernat`. diff --git a/tests/session/cmd/test_show_config.py b/tests/session/cmd/test_show_config.py index e96abf9a31..dbcb669e76 100644 --- a/tests/session/cmd/test_show_config.py +++ b/tests/session/cmd/test_show_config.py @@ -98,8 +98,7 @@ def test_pass_env_config_default(tox_project: ToxProjectCreator, stdout_is_atty: pass_env = outcome.env_conf("py")["pass_env"] is_win = sys.platform == "win32" expected = ( - (["NUMBER_OF_PROCESSORS"] if is_win else []) - + (["COMSPEC"] if is_win else []) + (["COMSPEC"] if is_win else []) + ["CURL_CA_BUNDLE", "LANG", "LANGUAGE", "LD_LIBRARY_PATH"] + (["MSYSTEM", "PATHEXT"] if is_win else []) + ["PIP_*"] @@ -109,6 +108,7 @@ def test_pass_env_config_default(tox_project: ToxProjectCreator, stdout_is_atty: + (["PROGRAMFILES(x86)"] if is_win else []) + ["REQUESTS_CA_BUNDLE", "SSL_CERT_FILE"] + (["SYSTEMDRIVE", "SYSTEMROOT", "TEMP"] if is_win else []) + + (["NUMBER_OF_PROCESSORS"] if is_win else []) + (["TERM"] if stdout_is_atty else []) + (["TMP", "USERPROFILE"] if is_win else ["TMPDIR"]) + ["VIRTUALENV_*", "http_proxy", "https_proxy", "no_proxy"]