This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Jeffrey.Kintscher
Recipients Jeffrey.Kintscher, Nick Henderson, jaraco
Date 2020-07-23.22:18:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1595542709.42.0.915548836189.issue41350@roundup.psfhosted.org>
In-reply-to
Content
It looks like a copy of the zip_file object is getting created, probably by the Path constructor:

    zip_path = Path(zip_file, "file-a")

When return is invoked, the copy still has a reference to the now closed bytes_io object which causes the ValueError exception when ZipFile.__del__() calls ZipFile.close().  This is definitely a bug.  I'll take a crack at fixing it.
History
Date User Action Args
2020-07-23 22:18:29Jeffrey.Kintschersetrecipients: + Jeffrey.Kintscher, jaraco, Nick Henderson
2020-07-23 22:18:29Jeffrey.Kintschersetmessageid: <1595542709.42.0.915548836189.issue41350@roundup.psfhosted.org>
2020-07-23 22:18:29Jeffrey.Kintscherlinkissue41350 messages
2020-07-23 22:18:29Jeffrey.Kintschercreate