Eli Bendersky <[email protected]> added the comment:

I'm attaching a patch with a test for Martin's fix. I had trouble 
programmatically generating a "bad" zip for this bug, since it has different 
encodings for the header and filename (probably created by WinZip?). So I 
created a directory in test/ and placed the problematic zipfile M.Z. submitted 
in there, and wrote an appropriate test in test_zipfile.py

I verified the test fails on py3k trunk before Martin's fix, and succeeds after 
it, both by running the test file directly and through regrtest.

Note: Tested only on Ubuntu

----------
Added file: http://bugs.python.org/file20210/issue10801_test.1.patch

_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue10801>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to