Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MAINT: Be dilligent about closing files (causes warnings on python >=…
…3.8)
- Loading branch information
b4fa787
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.
I tried seeing ResourceWarnings in another project. I had to enable them with
-W once::ResourceWarning
in pytest, do you have that somewhere? I couldn't find it.The output is often unhelpful, so I added this feature proposal to pytest: pytest-dev/pytest#9644
b4fa787
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.
I've been experimenting with
filterwarnings = error
recently, which surfaced this issue (under python-3.9, but not 3.7 IIRC). The traceback was tolerable: