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

BUG: make loadmat/savemat file opening close resources correctly #11286

Merged
merged 2 commits into from
Dec 29, 2019

Conversation

rgommers
Copy link
Member

This pattern is given in the contextmanager docs; without it we see "Exception ignored in .... ResourceWarning" printed in the test suite output (after changing to pytest's --tb=short formatting).

Also clean up a minor doc issue in .travis.yml that I introduced yesterday

This pattern is given in the contextmanager docs; without it we
see "Exception ignored in .... ResourceWarning" printed in the
test suite output (after changing to pytest's `--tb=short` formatting).
Follow-up to scipygh-11276, where this was pointed out after merge.
@rgommers rgommers added scipy.io maintenance Items related to regular maintenance tasks labels Dec 29, 2019
@rgommers rgommers added this to the 1.5.0 milestone Dec 29, 2019
@rgommers
Copy link
Member Author

This worked, warnings are gone from CI log.

@larsoner
Copy link
Member

Failures look unrelated, thanks @rgommers

@larsoner larsoner merged commit a9471f0 into scipy:master Dec 29, 2019
@rgommers rgommers deleted the loadmat-resource branch December 29, 2019 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Items related to regular maintenance tasks scipy.io
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants