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

Merged
serhiy-storchaka merged 1 commit into
python:2.7from
orenmn:bpo31471-backport27
Sep 15, 2017
Merged

[2.7] bpo-31471: Fix assertion failure in subprocess.Popen() on Windows, in case env has a bad keys() method. (GH-3580)#3595
serhiy-storchaka merged 1 commit into
python:2.7from
orenmn:bpo31471-backport27

Conversation

@orenmn

@orenmn orenmn commented Sep 15, 2017

Copy link
Copy Markdown
Contributor

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