python 3.3 bz2 decompression testing results

Pauli Rikula pauli.rikula at gmail.com
Sat Jun 16 13:42:52 EDT 2012


I tested http://python.org/ftp/python/3.3.0/python-3.3.0a4.amd64.msi
bz2 module's decompression using the bz2 -files from:
https://www.ee.oulu.fi/research/ouspg/PROTOS_Test-Suite_c10-archive

and found nothing.

I did not use anything like Valgrind though.
Should I try to run these tests again using Linux and Valgrind?

Testscript is at:
http://code.google.com/p/my-never-ending-projects/source/browse/trunk/tests/python3_3_bz2/test_decompress.py

you might find it interesting.. or not.

The test took about 2 hours and all the exceptions I got from tests
were the like these two (exceptions.txt -file which was made by the
test_decompress.py -testscript):

--------
testcase 0: 00000184e108021bf3b3f860f1c7618c.bz2
file len: 76
local testtime: 2012-06-16 18:44:25
('Traceback (most recent call last):\n',
 '  File "C:/projektit/bz2_python33_test/test_decompress.py", line 52,
in <module>\n    _ = bz2.decompress(fs)\n',
 '  File "C:\\Python33-0a4\\lib\\bz2.py", line 419, in decompress\n
raise ValueError("Compressed data ended before the "\n',
 'ValueError: Compressed data ended before the end-of-stream marker
was reached\n')
--------
testcase 1: 000001d8c11b84d738de284a8ba76226.bz2
file len: 3629
local testtime: 2012-06-16 18:44:25
('Traceback (most recent call last):\n',
 '  File "C:/projektit/bz2_python33_test/test_decompress.py", line 52,
in <module>\n    _ = bz2.decompress(fs)\n',
 '  File "C:\\Python33-0a4\\lib\\bz2.py", line 417, in decompress\n
results.append(decomp.decompress(data))\n',
 'OSError: Invalid data stream\n')



More information about the Python-list mailing list