Commit Graph

77 Commits

Author SHA1 Message Date
Martin Panter
b1d867f149 Issue #27076: Doc, comment and test function name spelling fixes
Most fixes to Doc/ and Lib/ directories by Ville Skyttä.
2016-05-26 05:28:50 +00:00
Serhiy Storchaka
0e1c5f7dae Restored test_interleaved. After issue #8886 it was a duplicate of
test_different_file.
2016-05-13 21:19:44 +03:00
Serhiy Storchaka
90f5f5151c Issue #25101: Try to create a file to test write access in test_zipfile. 2015-09-19 10:55:20 +03:00
Serhiy Storchaka
4c2bada216 Issue #17753: Skip test_zipfile tests which require write access to test
and email.test.
2015-02-14 23:17:13 +02:00
Serhiy Storchaka
c328d11ef1 Issue #14099: Backout changeset c2c4cde55f6f (except adapted tests). 2015-01-26 13:45:04 +02:00
Serhiy Storchaka
45aa771fe9 Issue #14099: ZipFile.open() no longer reopen the underlying file. Objects
returned by ZipFile.open() can now operate independently of the ZipFile even
if the ZipFile was created by passing in a file-like object as the first
argument to the constructor.
2014-12-03 09:11:12 +02:00
Serhiy Storchaka
6d343e708b Issue #20912: Now directories added to ZIP file have correct Unix and MS-DOS
directory attributes.
2014-09-23 22:39:59 +03:00
Serhiy Storchaka
1af262c65c Fixed test_large_file_exception. Ported tests for large count of files
to TestZip64InSmallFiles.
2014-09-23 22:26:45 +03:00
Benjamin Peterson
c459755df2 adjust zipfile tests for splitdrive improvements 2014-06-22 20:26:07 -07:00
Gregory P. Smith
0344a0643d Fix issue #14315: The zipfile module now ignores extra fields in the central
directory that are too short to be parsed instead of letting a struct.unpack
error bubble up as this "bad data" appears in many real world zip files in the
wild and is ignored by other zip tools.
2014-05-29 23:41:52 -07:00
Benjamin Peterson
352eb4f432 properly close files in test_zipfile (#20887)
Patch by Matti Picus.
2014-04-03 10:31:25 -04:00
Serhiy Storchaka
49259359ee Issue #20262: Warnings are raised now when duplicate names are added in the
ZIP file or too long ZIP file comment is truncated.
2014-01-20 21:57:09 +02:00
Serhiy Storchaka
db03e6b842 Issue #17656: Skip test_extract_unicode_filenames if the FS encoding
doesn't support non-ASCII filenames.
2013-05-08 21:52:31 +03:00
Serhiy Storchaka
6fa83f99af Issue #17656: Fix extraction of zip files with unicode member paths. 2013-04-13 12:28:17 +03:00
Serhiy Storchaka
2a051fa117 Fix test for issue #6972. 2013-02-02 19:25:57 +02:00
Serhiy Storchaka
05fd744122 Preserve backslashes in malicious zip files for testing issue #6972. 2013-02-02 18:34:57 +02:00
Serhiy Storchaka
13e56c73b7 Fix the test and remove trailing dots on Windows for issue #6972. 2013-02-02 17:46:33 +02:00
Gregory P. Smith
608cc451c7 Fixes Issue #6972: The zipfile module no longer overwrites files outside of
its destination path when extracting malicious zip files.
2013-02-01 11:40:18 -08:00
Serhiy Storchaka
0be506a5ba Issue #4844: ZipFile now raises BadZipfile when opens a ZIP file with an
incomplete "End of Central Directory" record.  Original patch by Guilherme
Polo and Alan McIntyre.
2013-01-31 15:26:55 +02:00
Andrew Svetlov
4bb142b1b7 Issue #16714: use 'raise' exceptions, don't 'throw'.
Patch by Serhiy Storchaka.
2012-12-18 21:27:37 +02:00
Ezio Melotti
9e94972eed #14313: zipfile now raises NotImplementedError when the compression type is unknown. 2012-11-18 13:18:06 +02:00
R David Murray
3f4ccbabaf #14399: zipfile now correctly handles comments added to empty zipfiles.
Patch by Serhiy Storchaka.
2012-04-12 18:42:47 -04:00
Senthil Kumaran
ddd40312d5 Fix closes Issue6090 - Raise a ValueError, instead of failing with unrelated
exceptions, when a document with timestamp earlier than 1980 is provided to
zipfile. Patch contributed by  Petri Lehtinen.
2011-10-20 01:38:35 +08:00
R David Murray
873c583244 #10694: zipfile now ignores garbage at the end of a zipfile.
Original fix by 'rep', final patch (with tests) by Xuanji Li.
2011-06-09 16:01:09 -04:00
Brian Curtin
0d65433568 Fix #8886. Use context managers throughout zipfile tests.
This was fixed in py3k SVN. Consider this a backport.
2011-04-19 21:15:55 -05:00