-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
ResourceWarning: unclosed file <_io.TextIOWrapper name='/dev/null' mode='r' encoding='UTF-8'> #4355
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
Comments
It's going to be hard to turn these into failures -- these are exceptions triggered as the interpreter is shutting down. I think the best we can do is fix them and hope they don't come back. From what I can tell, the only opening of |
lets just do a gc.collect in session shutdown to see more information, perhaps even after each test (perhaps as part of the lsoff plugin) |
A |
Is it maybe coming from inner pytest runs? |
mayyybe, but probably much less likely (unless they're complex second or third generation gc objects and the tests that leak them happen to be at the end). I've really only seen the "Exception ignored ..." errors during module teardown though 🤷♂️ |
Also done in test_pluginmanager, although no resource warnings are there at least. Fixes pytest-dev#4355.
Also done in test_pluginmanager, although no resource warnings are there at least. Fixes pytest-dev#4355.
=> #5006 |
Also done in test_pluginmanager, although no resource warnings are there at least. Fixes pytest-dev#4355.
I've seen the following on full run of the test suite:
Related to #3879 in that it would be nice if those would cause CI to fail.
I have not investigated what triggered them.
This was on 8baeb90.
The text was updated successfully, but these errors were encountered: