Skip to content

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

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 6 commits into from
May 10, 2019

Conversation

tonybaloney
Copy link
Contributor

@tonybaloney tonybaloney commented May 6, 2019

@tonybaloney
Copy link
Contributor Author

Requesting review from @nanjekyejoannah

@ZackerySpytz
Copy link
Contributor

I believe this change should have a test.

@tonybaloney
Copy link
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
Contributor

Looks fine for me. @vstinner any thoughts?

Copy link
Member

@vstinner vstinner left a comment

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

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
Contributor Author

I have made the requested changes; please review again

@bedevere-bot
Copy link

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