-
Notifications
You must be signed in to change notification settings - Fork 64
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: ResourceWarnings #877
Comments
Hi @LeamHall, thanks for the report. Those (The |
Thanks! The DeprecationWarning is already noted as an issue on pip-api for Python 3.11, I added a note that it occurs on 3.12 as well. |
Reproduced this with the following:
yielding:
I'm a bit confused as to why our Edit: Figured it out: I thought |
If you have something I can drop in and test, let me know. |
Thanks! I'll have a PR up later today that'll be testable. |
#878 fixes these leakages for me locally. Please give it a test if you can! |
Here's what I have:
Which did it's own venv, and then ran, giving only the pip_api DeprecationWarning. No ResourceWarnings, yay! I'm not great at packages yet, sorry. What else can I do to test? |
In the normal venv
And it also ran without ResourceWarnings. Looks good to me! |
Thanks a ton @LeamHall! |
Pre-submission checks
Expected behavior
I'm getting Resource warnings when running pip-audit.
Actual behavior
Reproduction steps
Run pip-audit.
Logs
Additional context
No response
OS name, version, and architecture
Fedora Linux on x86_64
pip-audit version
2.7.3
pip version
25.0
Python version
3.12.1+
The text was updated successfully, but these errors were encountered: