-
-
Notifications
You must be signed in to change notification settings - Fork 18.2k
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
WIP: Debug ResourceWarnings BufferedRandom #44877
Conversation
might be good to have a test whether with pytest.raises(...):
with check_bufferedrandom_resourcewarning():
foo = open("foo")
foo.close() Specifically enabling ResourceWarnings (usually disabled by default) seemed to work well for me in #39047: adding |
pandas/conftest.py
Outdated
pat = re.compile(r"(0?[1-9]|1[0-9]|2[0-5])u") | ||
|
||
|
||
@pytest.fixture(autouse=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe just enable for pandas.tests.io?
Yeah might do this in a follow up. Ideally just checking which tests open up new OS-level file handles. Apparently the |
Closing in favor of #45073 |
xref #44844