diff options
author | Gregory P. Smith <greg@krypto.org> | 2017-05-30 23:21:47 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-30 23:21:47 (GMT) |
commit | 85aba238e49abd2d5a604102981d28a50f305443 (patch) | |
tree | 675defe23ff904a6c5e97bbecef120a8881082ba /Lib/test/test_subprocess.py | |
parent | 9efad1e5aef32a6d8ca288793e8ee6df8782f615 (diff) | |
download | cpython-85aba238e49abd2d5a604102981d28a50f305443.zip cpython-85aba238e49abd2d5a604102981d28a50f305443.tar.gz cpython-85aba238e49abd2d5a604102981d28a50f305443.tar.bz2 |
subprocess test_empty_env typo fix. (#1877)
Diffstat (limited to 'Lib/test/test_subprocess.py')
-rw-r--r-- | Lib/test/test_subprocess.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py index cf6ee9c..7fabe6a 100644 --- a/Lib/test/test_subprocess.py +++ b/Lib/test/test_subprocess.py @@ -636,13 +636,13 @@ class ProcessTestCase(BaseTestCase): def test_empty_env(self): """Verify that env={} is as empty as possible.""" - def is_env_var_to_ignore(var_name): + def is_env_var_to_ignore(n): """Determine if an environment variable is under our control.""" # This excludes some __CF_* and VERSIONER_* keys MacOS insists # on adding even when the environment in exec is empty. # Gentoo sandboxes also force LD_PRELOAD and SANDBOX_* to exist. - return ('VERSIONER' in k or '__CF' in k or # MacOS - 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 with subprocess.Popen([sys.executable, "-c", 'import os; print(list(os.environ.keys()))'], |