the following snippet raises an exception in Python 3.13.2 while it's fine with Python 3.12.
Exception ignored in: <gzip on 0x7fa4fd99c550>
Traceback (most recent call last):
File "/usr/lib/python3.13/gzip.py", line 359, in close
fileobj.write(self.compress.flush())
Bug report
Bug description:
Hello,
the following snippet raises an exception in Python 3.13.2 while it's fine with Python 3.12.
Running this with python3.12 is silent, with Python 3.13.2 instead:
CPython versions tested on:
3.13
Operating systems tested on:
Linux
Linked PRs
gzip.GzipFilereference loop #130055gzip.GzipFilereference loop (GH-130055) #130669gzip.GzipFilereference loop (GH-130055) #130670