Skip to content

Commit 85aba23

Browse files
authored
subprocess test_empty_env typo fix. (#1877)
1 parent 9efad1e commit 85aba23

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Lib/test/test_subprocess.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -636,13 +636,13 @@ def test_env(self):
636636
def test_empty_env(self):
637637
"""Verify that env={} is as empty as possible."""
638638

639-
def is_env_var_to_ignore(var_name):
639+
def is_env_var_to_ignore(n):
640640
"""Determine if an environment variable is under our control."""
641641
# This excludes some __CF_* and VERSIONER_* keys MacOS insists
642642
# on adding even when the environment in exec is empty.
643643
# 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
644+
return ('VERSIONER' in n or '__CF' in n or # MacOS
645+
n == 'LD_PRELOAD' or n.startswith('SANDBOX')) # Gentoo
646646

647647
with subprocess.Popen([sys.executable, "-c",
648648
'import os; print(list(os.environ.keys()))'],

0 commit comments

Comments
 (0)