-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
GzipFile leaves GzipFile.myfileobject open in constructor if exception is raised #131492
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
Comments
vstinner
added a commit
that referenced
this issue
Mar 20, 2025
… owning resources (#131462) Co-authored-by: Victor Stinner <[email protected]>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Mar 20, 2025
…ructor while owning resources (pythonGH-131462) (cherry picked from commit ce79274) Co-authored-by: Thomas Grainger <[email protected]> Co-authored-by: Victor Stinner <[email protected]>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Mar 20, 2025
…ructor while owning resources (pythonGH-131462) (cherry picked from commit ce79274) Co-authored-by: Thomas Grainger <[email protected]> Co-authored-by: Victor Stinner <[email protected]>
vstinner
added a commit
that referenced
this issue
Mar 21, 2025
…r while owning resources (GH-131462) (#131518) (cherry picked from commit ce79274) Co-authored-by: Thomas Grainger <[email protected]> Co-authored-by: Victor Stinner <[email protected]>
vstinner
added a commit
that referenced
this issue
Mar 21, 2025
…r while owning resources (GH-131462) (#131519) (cherry picked from commit ce79274) Co-authored-by: Thomas Grainger <[email protected]> Co-authored-by: Victor Stinner <[email protected]>
Fixed by the change ce79274. |
I confirm that it now raises the ExceptionGroup, rather than failing with "Too many open files". It works as expected. |
seehwan
pushed a commit
to seehwan/cpython
that referenced
this issue
Apr 16, 2025
…ructor while owning resources (python#131462) Co-authored-by: Victor Stinner <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug report
Bug description:
consider the following program, it should raise an ExceptionGroup(..., [ValueError(), ValueError(), ...] but actually it raises OSError: [Errno 24] Too many open files: '/tmp/tmpk8gaprry'
CPython versions tested on:
CPython main branch, 3.14, 3.13, 3.12, 3.11
Operating systems tested on:
Linux
Linked PRs
The text was updated successfully, but these errors were encountered: