Test suite fails on current Debian sid: "ValueError: ZIP does not support timestamps before 1980"
On #9252 (closed) we've fixed a part of the test suite, but (as I realized when preparing a 0.5.3 package + recent bugfixes) not everything yet.
Here's the full output of the test suite run in my up-to-date sid pbuilder chroot:
cd ./test ; LC_ALL=C.UTF-8 xvfb-run -a python test.py test_remove (clitest.TestRemovecli) make sure that the cli remove all compromizing meta ... [*] Cleaning /tmp/tmpGF7lFs/dirty é.docx Traceback (most recent call last): File "../mat", line 142, in main() File "../mat", line 135, in main ret += func(class_file, filename, args.add2archive) File "../mat", line 86, in clean_meta if class_file.remove_all(): File "/tmp/buildd/mat-0.5.3/libmat/office.py", line 80, in remove_all beginning_blacklist=('docProps/'), whitelist=('.rels')) File "/tmp/buildd/mat-0.5.3/libmat/archive.py", line 179, in remove_all zipout.write(path, item.filename) File "/usr/lib/python2.7/zipfile.py", line 1135, in write zinfo = ZipInfo(arcname, date_time) File "/usr/lib/python2.7/zipfile.py", line 305, in __init__ raise ValueError('ZIP does not support timestamps before 1980') ValueError: ZIP does not support timestamps before 1980 FAIL test_remove_empty (clitest.TestRemovecli) Test removal with clean files ... [*] Cleaning /tmp/tmpG6EABv/clean é.docx Traceback (most recent call last): File "../mat", line 142, in main() File "../mat", line 135, in main ret += func(class_file, filename, args.add2archive) File "../mat", line 86, in clean_meta if class_file.remove_all(): File "/tmp/buildd/mat-0.5.3/libmat/office.py", line 80, in remove_all beginning_blacklist=('docProps/'), whitelist=('.rels')) File "/tmp/buildd/mat-0.5.3/libmat/archive.py", line 179, in remove_all zipout.write(path, item.filename) File "/usr/lib/python2.7/zipfile.py", line 1135, in write zinfo = ZipInfo(arcname, date_time) File "/usr/lib/python2.7/zipfile.py", line 305, in __init__ raise ValueError('ZIP does not support timestamps before 1980') ValueError: ZIP does not support timestamps before 1980 [*] Cleaning /tmp/tmpG6EABv/clean é.flac [+] /tmp/tmpG6EABv/clean é.flac cleaned! [*] Cleaning /tmp/tmpG6EABv/clean é.jpg [+] /tmp/tmpG6EABv/clean é.jpg cleaned! [*] Cleaning /tmp/tmpG6EABv/clean é.mp3 [+] /tmp/tmpG6EABv/clean é.mp3 cleaned! [*] Cleaning /tmp/tmpG6EABv/clean é.odt Traceback (most recent call last): File "../mat", line 142, in main() File "../mat", line 135, in main ret += func(class_file, filename, args.add2archive) File "../mat", line 86, in clean_meta if class_file.remove_all(): File "/tmp/buildd/mat-0.5.3/libmat/office.py", line 54, in remove_all return super(OpenDocumentStripper, self).remove_all(ending_blacklist=['meta.xml']) File "/tmp/buildd/mat-0.5.3/libmat/archive.py", line 179, in remove_all zipout.write(path, item.filename) File "/usr/lib/python2.7/zipfile.py", line 1135, in write zinfo = ZipInfo(arcname, date_time) File "/usr/lib/python2.7/zipfile.py", line 305, in __init__ raise ValueError('ZIP does not support timestamps before 1980') ValueError: ZIP does not support timestamps before 1980 [ERROR] mat.py:157 /tmp/tmpu5ggqW/Configurations2/accelerator/current.xml is empty [*] Cleaning /tmp/tmpG6EABv/clean é.ogg [+] /tmp/tmpG6EABv/clean é.ogg cleaned! [*] Cleaning /tmp/tmpG6EABv/clean é.pdf [+] /tmp/tmpG6EABv/clean é.pdf cleaned! [*] Cleaning /tmp/tmpG6EABv/clean é.png [+] /tmp/tmpG6EABv/clean é.png cleaned! [*] Cleaning /tmp/tmpG6EABv/clean é.tar [+] /tmp/tmpG6EABv/clean é.tar cleaned! [*] Cleaning /tmp/tmpG6EABv/clean é.tar.bz2 [+] /tmp/tmpG6EABv/clean é.tar.bz2 cleaned! [*] Cleaning /tmp/tmpG6EABv/clean é.tar.gz [+] /tmp/tmpG6EABv/clean é.tar.gz cleaned! [*] Cleaning /tmp/tmpG6EABv/clean é.torrent [+] /tmp/tmpG6EABv/clean é.torrent cleaned! [*] Cleaning /tmp/tmpG6EABv/clean é.zip Traceback (most recent call last): File "../mat", line 142, in main() File "../mat", line 135, in main ret += func(class_file, filename, args.add2archive) File "../mat", line 86, in clean_meta if class_file.remove_all(): File "/tmp/buildd/mat-0.5.3/libmat/archive.py", line 179, in remove_all zipout.write(path, item.filename) File "/usr/lib/python2.7/zipfile.py", line 1135, in write zinfo = ZipInfo(arcname, date_time) File "/usr/lib/python2.7/zipfile.py", line 305, in __init__ raise ValueError('ZIP does not support timestamps before 1980') ValueError: ZIP does not support timestamps before 1980 ok test_list_clean (clitest.TestListcli) check if get_meta returns meta ... ok test_list_dirty (clitest.TestListcli) check if get_meta returns all the expected meta ... ok test_clean (clitest.TestisCleancli) test is_clean on clean files ... ok test_dirty (clitest.TestisCleancli) test is_clean on dirty files ... ok test_abort_unsupported (clitest.TestUnsupported) test if the cli aborts on unsupported files ... ok test_remove (libtest.TestRemovelib) make sure that the lib remove all compromizing meta ... ERROR test_remove_empty (libtest.TestRemovelib) Test removal with clean files ... ERROR test_list (libtest.TestListlib) check if get_meta returns metadata ... [ERROR] mat.py:157 /tmp/tmpe8XhxL/Configurations2/accelerator/current.xml is empty ok testlist_list_empty (libtest.TestListlib) check that a listing of a clean file returns an empty dict ... [ERROR] mat.py:157 /tmp/tmpWV_qTl/Configurations2/accelerator/current.xml is empty ok test_clean (libtest.TestisCleanlib) test is_clean on clean files ... [ERROR] mat.py:157 /tmp/tmp8mIoZL/Configurations2/accelerator/current.xml is empty ok test_dirty (libtest.TestisCleanlib) test is_clean on dirty files ... ok test_empty (libtest.TestFileAttributes) test MAT's behaviour on empty file ... [ERROR] mat.py:157 empty_file is empty ok test_not_exist (libtest.TestFileAttributes) test MAT's behaviour on non-existent file ... [ERROR] mat.py:148 non_existent_file is not a valid file ok test_remove_existing (libtest.TestSecureRemove) test the secure removal of an existing file ... ok test_remove_fail (libtest.TestSecureRemove) test the secure removal of an non-removable file ... [ERROR] mat.py:120 Unable to add write rights to /NOTREMOVABLE ok test_archive_unwritable_content (libtest.TestArchiveProcessing) ... ERROR test_get_unsupported (libtest.TestArchiveProcessing) Test the get_unsupported feature, used by the GUI ... [ERROR] archive.py:275 mat.desktop's format is not supported or harmless [ERROR] archive.py:275 README.security's format is not supported or harmless [ERROR] archive.py:275 setup.py's format is not supported or harmless ok test_remove_bz2 (libtest.TestArchiveProcessing) Test MAT's ability to process .tar.bz2 ... ERROR test_remove_gz (libtest.TestArchiveProcessing) Test MAT on tar.gz files ... ERROR test_remove_tar (libtest.TestArchiveProcessing) Test MAT on tar files ... ERROR ====================================================================== ERROR: test_remove (libtest.TestRemovelib) make sure that the lib remove all compromizing meta ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/buildd/mat-0.5.3/test/libtest.py", line 27, in test_remove current_file.remove_all() File "../libmat/office.py", line 80, in remove_all beginning_blacklist=('docProps/'), whitelist=('.rels')) File "../libmat/archive.py", line 179, in remove_all zipout.write(path, item.filename) File "/usr/lib/python2.7/zipfile.py", line 1135, in write zinfo = ZipInfo(arcname, date_time) File "/usr/lib/python2.7/zipfile.py", line 305, in __init__ raise ValueError('ZIP does not support timestamps before 1980') ValueError: ZIP does not support timestamps before 1980 ====================================================================== ERROR: test_remove_empty (libtest.TestRemovelib) Test removal with clean files ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/buildd/mat-0.5.3/test/libtest.py", line 35, in test_remove_empty current_file.remove_all() File "../libmat/office.py", line 80, in remove_all beginning_blacklist=('docProps/'), whitelist=('.rels')) File "../libmat/archive.py", line 179, in remove_all zipout.write(path, item.filename) File "/usr/lib/python2.7/zipfile.py", line 1135, in write zinfo = ZipInfo(arcname, date_time) File "/usr/lib/python2.7/zipfile.py", line 305, in __init__ raise ValueError('ZIP does not support timestamps before 1980') ValueError: ZIP does not support timestamps before 1980 ====================================================================== ERROR: test_archive_unwritable_content (libtest.TestArchiveProcessing) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/buildd/mat-0.5.3/test/libtest.py", line 163, in test_archive_unwritable_content current_file.remove_all() File "../libmat/archive.py", line 179, in remove_all zipout.write(path, item.filename) File "/usr/lib/python2.7/zipfile.py", line 1135, in write zinfo = ZipInfo(arcname, date_time) File "/usr/lib/python2.7/zipfile.py", line 305, in __init__ raise ValueError('ZIP does not support timestamps before 1980') ValueError: ZIP does not support timestamps before 1980 ====================================================================== ERROR: test_remove_bz2 (libtest.TestArchiveProcessing) Test MAT's ability to process .tar.bz2 ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/buildd/mat-0.5.3/test/libtest.py", line 115, in test_remove_bz2 current_file.remove_all() File "../libmat/archive.py", line 217, in remove_all cfile.remove_all() File "../libmat/office.py", line 80, in remove_all beginning_blacklist=('docProps/'), whitelist=('.rels')) File "../libmat/archive.py", line 179, in remove_all zipout.write(path, item.filename) File "/usr/lib/python2.7/zipfile.py", line 1135, in write zinfo = ZipInfo(arcname, date_time) File "/usr/lib/python2.7/zipfile.py", line 305, in __init__ raise ValueError('ZIP does not support timestamps before 1980') ValueError: ZIP does not support timestamps before 1980 ====================================================================== ERROR: test_remove_gz (libtest.TestArchiveProcessing) Test MAT on tar.gz files ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/buildd/mat-0.5.3/test/libtest.py", line 143, in test_remove_gz current_file.remove_all() File "../libmat/archive.py", line 217, in remove_all cfile.remove_all() File "../libmat/office.py", line 80, in remove_all beginning_blacklist=('docProps/'), whitelist=('.rels')) File "../libmat/archive.py", line 179, in remove_all zipout.write(path, item.filename) File "/usr/lib/python2.7/zipfile.py", line 1135, in write zinfo = ZipInfo(arcname, date_time) File "/usr/lib/python2.7/zipfile.py", line 305, in __init__ raise ValueError('ZIP does not support timestamps before 1980') ValueError: ZIP does not support timestamps before 1980 ====================================================================== ERROR: test_remove_tar (libtest.TestArchiveProcessing) Test MAT on tar files ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/buildd/mat-0.5.3/test/libtest.py", line 129, in test_remove_tar current_file.remove_all() File "../libmat/archive.py", line 217, in remove_all cfile.remove_all() File "../libmat/office.py", line 80, in remove_all beginning_blacklist=('docProps/'), whitelist=('.rels')) File "../libmat/archive.py", line 179, in remove_all zipout.write(path, item.filename) File "/usr/lib/python2.7/zipfile.py", line 1135, in write zinfo = ZipInfo(arcname, date_time) File "/usr/lib/python2.7/zipfile.py", line 305, in __init__ raise ValueError('ZIP does not support timestamps before 1980') ValueError: ZIP does not support timestamps before 1980 ====================================================================== FAIL: test_remove (clitest.TestRemovecli) make sure that the cli remove all compromizing meta ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/buildd/mat-0.5.3/test/clitest.py", line 28, in test_remove self.assertTrue(current_file.is_clean()) AssertionError: False is not true ---------------------------------------------------------------------- Ran 22 tests in 21.100s FAILED (failures=1, errors=6) debian/rules:10: recipe for target 'override_dh_auto_test' failed make[1]: *** [override_dh_auto_test] Error 1
(from redmine: created on 2015-07-30, closed on 2015-08-19, relates #7857 (closed))