Skip to content

Conversation

Naofal-Helal
Copy link
Contributor

@Naofal-Helal Naofal-Helal commented Sep 22, 2024

The issue

When running pipenv install -r requirements.txt, a warning (ResourceWarning: unclosed file) is shown to users.
This warning comes from temporary directories that will be cleared on program exit, and is therefore not meaningful to the user.

The fix

Ignore the warning.

Fixes #6151
Fixes #6155

The checklist

  • Associated issue
  • A news fragment in the news/ directory to describe this fix with the extension .bugfix.rst, .feature.rst, .behavior.rst, .doc.rst. .vendor.rst. or .trivial.rst (this will appear in the release changelog). Use semantic line breaks and name the file after the issue number or the PR #.

@Naofal-Helal Naofal-Helal marked this pull request as ready for review September 22, 2024 11:08
@matteius matteius merged commit f7058e8 into pypa:main Sep 23, 2024
21 of 22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ResourceWarning when pipenv install --python 3.11 -r requirements.txt ResourceWarning: unclosed file

2 participants