Skip to content

bpo-36814: ensure os.posix_spawnp handles Py_None#13144

Merged
vstinner merged 6 commits into
python:masterfrom
tonybaloney:bpo-36814
May 10, 2019
Merged

bpo-36814: ensure os.posix_spawnp handles Py_None#13144
vstinner merged 6 commits into
python:masterfrom
tonybaloney:bpo-36814

Conversation

@tonybaloney

@tonybaloney tonybaloney commented May 6, 2019

Copy link
Copy Markdown
Contributor

@tonybaloney

Copy link
Copy Markdown
Contributor Author

Requesting review from @nanjekyejoannah

@ZackerySpytz

Copy link
Copy Markdown
Contributor

I believe this change should have a test.

@tonybaloney

Copy link
Copy Markdown
Contributor Author

@ZackerySpytz agreed, added tests

@pablogsal pablogsal self-assigned this May 8, 2019
@pablogsal
pablogsal self-requested a review May 8, 2019 00:41
@nanjekyejoannah

Copy link
Copy Markdown
Contributor

Looks fine for me. @vstinner any thoughts?

@vstinner vstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should not add tests to TestPosixSpawnP but _PosixSpawnMixin, otherwise only os.posix_spawnp() is tested, not os.posix_spawn().

Well, honestly, I would go with a PR without tests. We already have plenty of tests for posix_spawn().

If you want to add tests, please avoid setUp() and avoid hardcoding "posix_spawnp" in the test, since the tests should be run on posix_spawn and posix_spawnp.

@bedevere-bot

Copy link
Copy Markdown

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

@tonybaloney

Copy link
Copy Markdown
Contributor Author

I have made the requested changes; please review again

@bedevere-bot

Copy link
Copy Markdown

Thanks for making the requested changes!

@vstinner: please review the changes made to this pull request.

@vstinner
vstinner merged commit 948ed8c into python:master May 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants