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 jaraco
Recipients bustawin, jaraco, xtreak
Date 2020-08-26.21:22:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I've attempted to replicate the issue in the [zipp]( test suite with this test:

diff --git a/ b/
index a6fbf39..dc7c8aa 100644
--- a/
+++ b/
@@ -259,3 +259,10 @@ class TestPath(unittest.TestCase):
     def test_implied_dirs_performance(self):
         data = ['/'.join(string.ascii_lowercase + str(n)) for n in range(10000)]
+    def test_read_does_not_close(self):
+        for alpharep in self.zipfile_alpharep():
+            for rep in range(2):
+                p_ = zipp.Path(alpharep, 'a.txt')
+                with as inner:
+                    print(list(inner))

But the test passes.
Date User Action Args
2020-08-26 21:22:55jaracosetrecipients: + jaraco, xtreak, bustawin
2020-08-26 21:22:55jaracosetmessageid: <>
2020-08-26 21:22:55jaracolinkissue40564 messages
2020-08-26 21:22:55jaracocreate