Skip to content

[2.7] bpo-31471: Fix assertion failure in subprocess.Popen() on Windows, in case env has a bad keys() method. (GH-3580) #3595

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

Merged
merged 1 commit into from
Sep 15, 2017

Conversation

orenmn
Copy link
Contributor

@orenmn orenmn commented Sep 15, 2017

the implementation of PyMapping_Keys() and PyMapping_Values() is different in 2.7, so the test we added to test_subprocess.py in 3.7 doesn't cause an assertion failure in 2.7.
we backport the change to getenvironment() anyway, because it is simple, and might prevent bugs we haven't thought of.

(this is a partial backport of #3580)

https://bugs.python.org/issue31471

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants