Skip to content
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

MAINT: Fix ResourceWarning new in Python 3.6. #8178

Merged
merged 2 commits into from
Oct 20, 2016

Conversation

charris
Copy link
Member

@charris charris commented Oct 19, 2016

In Python 2.6 the process destructor emits a ResourceWarning if the process has not terminated when destruction occurs. Fix by calling the wait method before return.

The Popen class may be used as a context manager in Python 3.2+, unfortunately that does not include 2.7.

Also add testing with Python 3.6-dev.

In Python 2.6 the process destructor emits a ResourceWarning if the
process has not terminated when destruction occurs. Fix by calling the
wait method before return.

The Popen class may be used as a context manager in Python 3.2+,
unfortunately that does not include 2.7.
@charris charris added this to the 1.12.0 release milestone Oct 19, 2016
@charris charris mentioned this pull request Oct 19, 2016
@charris charris merged commit e6122fd into numpy:master Oct 20, 2016
@charris charris deleted the fix-resource-warning branch October 20, 2016 18:18
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.

None yet

1 participant