diff options
author | Stefano Rivera <stefano@rivera.za.net> | 2020-10-07 19:24:51 -0700 |
---|---|---|
committer | Stefano Rivera <stefano@rivera.za.net> | 2020-10-07 19:24:51 -0700 |
commit | 1c282bdb4aab893e8a5b476281c307bf56804228 (patch) | |
tree | 417c559c080f3faf4984400e25c940d64e56c119 /lib-python | |
parent | test: Skip bpo-33817 test that uses pythonapi (diff) | |
download | pypy-1c282bdb4aab893e8a5b476281c307bf56804228.tar.gz pypy-1c282bdb4aab893e8a5b476281c307bf56804228.tar.bz2 pypy-1c282bdb4aab893e8a5b476281c307bf56804228.zip |
Fix the bpo-30730 test (invalid env vars in subprocess) in the posix implementation
Diffstat (limited to 'lib-python')
-rw-r--r-- | lib-python/2.7/subprocess.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib-python/2.7/subprocess.py b/lib-python/2.7/subprocess.py index 0480424b46..344da03b57 100644 --- a/lib-python/2.7/subprocess.py +++ b/lib-python/2.7/subprocess.py @@ -1026,6 +1026,10 @@ class Popen(object): if env is None: os.execvp(executable, args) else: + for k, v in env.items(): + if '=' in k: + raise ValueError( + "illegal environment variable name") os.execvpe(executable, args, env) except: |