Message124992
| Author |
eli.bendersky |
| Recipients |
M..Z., amaury.forgeotdarc, eli.bendersky, loewis, r.david.murray, vstinner |
| Date |
2011年01月01日.07:54:14 |
| SpamBayes Score |
6.028511e-13 |
| Marked as misclassified |
No |
| Message-id |
<1293868457.88.0.271569862304.issue10801@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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 |
|