Martin Panter added the comment: Eduardo’s patch causes many tests to fail. Abbreviated test output:
$ ./python -bWall -m test -v test_tarfile ====================================================================== ERROR: test_compare_members (test.test_tarfile.GzipStreamReadTest) ERROR: test_empty_tarfile (test.test_tarfile.GzipStreamReadTest) ERROR: test_fileobj_regular_file (test.test_tarfile.GzipStreamReadTest) ERROR: test_ignore_zeros (test.test_tarfile.GzipStreamReadTest) ERROR: test_non_existent_tarfile (test.test_tarfile.GzipStreamReadTest) ERROR: test_null_tarfile (test.test_tarfile.GzipStreamReadTest) ERROR: test_provoke_stream_error (test.test_tarfile.GzipStreamReadTest) ERROR: test_read_through (test.test_tarfile.GzipStreamReadTest) ---------------------------------------------------------------------- tarfile.ReadError: invalid compressed data ====================================================================== ERROR: test_stream_padding (test.test_tarfile.GzipStreamWriteTest) ---------------------------------------------------------------------- zlib.error: Error -3 while decompressing data: invalid stored block lengths ====================================================================== FAIL: test_detect_file (test.test_tarfile.GzipDetectReadTest) FAIL: test_detect_fileobj (test.test_tarfile.GzipDetectReadTest) AssertionError ---------------------------------------------------------------------- Ran 387 tests in 14.216s FAILED (failures=2, errors=9, skipped=8) There is already Issue 5784 open about clarifying the “wbits” parameter, so I think we can close this as a duplicate. ---------- resolution: -> duplicate status: open -> closed superseder: -> raw deflate format and zlib module _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue22163> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com