Repository navigation
suppress unittest ResourceWarning messages - #556
Merged
Merged
Conversation
dwalton76
force-pushed
the
ResourceWarning
branch
from
November 2, 2018 13:03
1398205 to
6281007
Compare
dwalton76
commented
Nov 2, 2018
Collaborator
Author
|
Also fixes #554 |
WasabiFan
reviewed
Nov 4, 2018
Member
|
Any idea where the |
Collaborator
Author
It is printed by unittest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
For issue #433
This does not fix the issue of the filehandles being left open it just suppresses the warnings generated by unittest. We've had 433 open for almost a year and haven't come up with a good solution and leaving the filehandles open isn't really causing any issues (none that I know of at least). From googling these unittest ResourceWarning messages we would not be the first repo to just ignore these via a warnings filter.
The
setUp()method just makes it so you can tell what output is coming from what test (this is optional)new output