There was an error while loading. Please reload this page.
1 parent 9efad1e commit 85aba23Copy full SHA for 85aba23
1 file changed
Lib/test/test_subprocess.py
@@ -636,13 +636,13 @@ def test_env(self):
636
def test_empty_env(self):
637
"""Verify that env={} is as empty as possible."""
638
639
- def is_env_var_to_ignore(var_name):
+ def is_env_var_to_ignore(n):
640
"""Determine if an environment variable is under our control."""
641
# This excludes some __CF_* and VERSIONER_* keys MacOS insists
642
# on adding even when the environment in exec is empty.
643
# Gentoo sandboxes also force LD_PRELOAD and SANDBOX_* to exist.
644
- return ('VERSIONER' in k or '__CF' in k or # MacOS
645
- k == 'LD_PRELOAD' or k.startswith('SANDBOX')) # Gentoo
+ return ('VERSIONER' in n or '__CF' in n or # MacOS
+ n == 'LD_PRELOAD' or n.startswith('SANDBOX')) # Gentoo
646
647
with subprocess.Popen([sys.executable, "-c",
648
'import os; print(list(os.environ.keys()))'],
0 commit comments