Skip to content

gh-137589: Zipfile tests: close file objects #138080

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Rogdham
Copy link
Contributor

@Rogdham Rogdham commented Aug 23, 2025

Some ZipFile instances were not closed in tests.

I tried to stick to the style of the tests around, to decide between using a context manager and calling .close() manually. Tell me if you want some to be changed.

See the issue for more information. I am unsure if this should be backported to 3.14 or even earlier, given the fact that it's only tests and impact has been seen only when running with PyPy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting review skip news tests Tests in the Lib/test dir
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants