Skip to content

Commit

Permalink
Ignore resource warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Naofal-Helal committed Sep 22, 2024
1 parent 472b118 commit a01f331
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions news/6151.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Disable ``ResourceWarning`` warning for temporary files that are cleaned on program exit.
2 changes: 1 addition & 1 deletion pipenv/routines/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def do_install(
requirements_directory = fileutils.create_tracked_tempdir(
suffix="-requirements", prefix="pipenv-"
)
warnings.filterwarnings("default", category=ResourceWarning)
warnings.filterwarnings("ignore", category=ResourceWarning)
packages = packages if packages else []
editable_packages = editable_packages if editable_packages else []
package_args = [p for p in packages if p] + [p for p in editable_packages if p]
Expand Down

0 comments on commit a01f331

Please sign in to comment.