New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
assertion failure in subprocess.Popen() in case the env arg has a bad keys() method #75652
Comments
The following code causes an assertion failure on Windows: import subprocess
import sys
subprocess.Popen([sys.executable, "-c", "pass"], env=BadEnv()) this is because getenvironment() (in Modules/_winapi.c) calls PyMapping_Values() |
Is this bug reproducible in 2.7? |
in 2.7 getenvironment() is in PC/_subprocess.c, and it also calls PyMapping_Values() but I haven't gone over all of the code that could be run as part of |
Then I think it is worth to backport the fix to 2.7. |
OK. |
It's on you. |
Thanks Oren! |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: