Stepan Kasal <ka...@ucw.cz> added the comment:

Attached please find a patch that fixes this issue by reusing the original fp 
from ZipFile object.

Two of the test cases attempted to read a file from a zip as soon as write() 
was called.  I believe that this is not correct usage: zip file is not even 
fully written to disk at that stage!
So I took the liberty to change these two test cases so that they first write 
the file and then read it.

Let me thank to Martin Sikora for discovering the issue and to Matej Cepl for 
testing it on current source tree.

----------
keywords: +patch
Added file: http://bugs.python.org/file24617/Proposed-fix-of-issue14099.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue14099>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to