Serhiy Storchaka
b4293efd93
Issue #28115 : ZIP creation test requires zlib.
2016-10-23 22:32:30 +03:00
Serhiy Storchaka
61c4c44b2a
Issue #28115 : Added tests for CLI of the zipfile module.
2016-10-23 13:07:59 +03:00
Serhiy Storchaka
8793b21525
Issue #26293 : Fixed writing ZIP files that starts not from the start of the
...
file. Offsets in ZIP file now are relative to the start of the archive in
conforming to the specification.
2016-10-07 22:20:50 +03:00
Serhiy Storchaka
d76c7c2bed
Restored test_interleaved. After issue #8886 it was a duplicate of
...
test_different_file.
2016-05-13 21:18:58 +03:00
Serhiy Storchaka
f2d7ea1af1
Issue #25101 : Try to create a file to test write access in test_zipfile.
2015-09-19 10:59:48 +03:00
Serhiy Storchaka
d86a6ef41c
Issue #25101 : Try to create a file to test write access in test_zipfile.
2015-09-19 10:55:20 +03:00
Larry Hastings
8093254597
Merge from 3.4.
2015-05-08 06:58:56 -07:00
Larry Hastings
7e63b36f7f
Issue #21520 : test_zipfile no longer fails if the word 'bad' appears
...
anywhere in the name of the current directory.
2015-05-08 06:54:58 -07:00
Brett Cannon
f299abdafa
Issue #23731 : Implement PEP 488.
...
The concept of .pyo files no longer exists. Now .pyc files have an
optional `opt-` tag which specifies if any extra optimizations beyond
the peepholer were applied.
2015-04-13 14:21:02 -04:00
Serhiy Storchaka
764fc9bfac
Issue #21717 : The zipfile.ZipFile.open function now supports 'x' (exclusive
...
creation) mode.
2015-03-25 10:09:41 +02:00
Serhiy Storchaka
77d899726f
Issue #23252 : Added support for writing ZIP files to unseekable streams.
2015-03-23 01:09:35 +02:00
Berker Peksag
a9e2c8ecd6
Issue #17753 : effective_ids unavailable on Windows.
2015-02-16 04:36:43 +02:00
Berker Peksag
e1efc07a30
Issue #17753 : effective_ids unavailable on Windows.
2015-02-16 04:36:18 +02:00
Serhiy Storchaka
2307287c92
Issue #17753 : Skip test_zipfile tests which require write access to test
...
and email.test.
2015-02-14 23:06:42 +02:00
Serhiy Storchaka
db724fe994
Issue #17753 : Skip test_zipfile tests which require write access to test
...
and email.test.
2015-02-14 23:04:35 +02:00
Serhiy Storchaka
a14f7d239f
Issue #14099 : Restored support of writing ZIP files to tellable but
...
non-seekable streams.
2015-01-26 14:01:27 +02:00
Serhiy Storchaka
b76bcc4ffc
Issue #14099 : Backout changeset e5bb3044402b (except adapted tests).
2015-01-26 13:45:39 +02:00
Serhiy Storchaka
1ad088f3ea
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:57 +02:00
Serhiy Storchaka
f4adbae927
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:14:36 +02:00
Serhiy Storchaka
51a43703af
Issue #22217 : Implemented reprs of classes in the zipfile module.
2014-10-29 22:42:06 +02:00
Serhiy Storchaka
46a34924e4
Issue #20912 : Now directories added to ZIP file have correct Unix and MS-DOS
...
directory attributes.
2014-09-23 22:40:23 +03:00
Serhiy Storchaka
026a399bf9
Fixed test_large_file_exception. Ported tests for large count of files
...
to AbstractTestZip64InSmallFiles.
2014-09-23 22:27:34 +03:00
Victor Stinner
88b215e20f
Issue #21440 : test_zipfile: replace last direct calls to os.remove() with
...
support.unlink()
2014-09-04 00:51:09 +02:00
Victor Stinner
57004c696a
Issue #21440 : Backport changeset 4ebf97299b18 to branch 3.4, use
...
support.rmtree() and support.unlink() in test_zipfile & test_tarfile
2014-09-04 00:49:01 +02:00
Gregory P. Smith
0af8a86be8
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:42:14 -07:00
Serhiy Storchaka
c46d1faa4a
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:59:33 +02:00
Serhiy Storchaka
9b7a1a1af6
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:40 +02:00
Serhiy Storchaka
69fdbf9cb0
Issue #20078 : Reading malformed zipfiles no longer hangs with 100% CPU
...
consumption.
2014-01-09 14:53:41 +02:00
Serhiy Storchaka
5ce3f10aee
Issue #20078 : Reading malformed zipfiles no longer hangs with 100% CPU
...
consumption.
2014-01-09 14:50:20 +02:00
Serhiy Storchaka
2480c2ed59
Issue #15204 : Silence and check the 'U' mode deprecation warnings in tests.
...
Changed deprecation message in the fileinput module.
2013-11-24 23:13:26 +02:00
Serhiy Storchaka
235c5e0dd6
Issue #17201 : ZIP64 extensions now are enabled by default.
...
Patch by William Mallard.
2013-11-23 15:55:38 +02:00
Christian Tismer
410d931a17
add filtering of individual files to PyZipFile
...
changed output of debug messages to say "path" or "file"
extended test for filtering certain files in a package
added test for filtering files in a python dir (no package)
2013-10-22 04:09:28 +02:00
Georg Brandl
a606542e95
#19274 : use captured_stdout() in the test suite; add NEWS entry.
2013-10-21 08:29:29 +02:00
Christian Tismer
59202e5fc7
add a filterfunc to zip file.PyZipFile.writepy, issue 19274
2013-10-21 03:59:23 +02:00
Serhiy Storchaka
ab25c7c011
Issue #19053 : ZipExtFile.read1() with non-zero argument no more returns empty
...
bytes until end of data.
2013-09-27 22:14:31 +03:00
Serhiy Storchaka
d2c07a58af
Issue #19053 : ZipExtFile.read1() with non-zero argument no more returns empty
...
bytes until end of data.
2013-09-27 22:11:57 +03:00
Serhiy Storchaka
9068e4d642
Issue #17944 : test_zipfile now discoverable and uses subclassing to
...
generate tests for different compression types. Fixed a bug with skipping
some tests due to use of exhausted iterators.
2013-07-22 21:02:14 +03:00
Serhiy Storchaka
fa6bc29987
Issue #17944 : test_zipfile now discoverable and uses subclassing to
...
generate tests for different compression types. Fixed a bug with skipping
some tests due to use of exhausted iterators.
2013-07-22 21:00:11 +03:00
Brett Cannon
b57a085c74
Issue #17177 : Stop using imp in zipfile
2013-06-15 17:32:30 -04:00
Brett Cannon
d5b4e1d891
Move test_zipfile to unittest.main()
2013-06-12 19:57:19 -04:00
Gregory P. Smith
7eca9624be
Refactor recently added bugfix into more testable code by using a
...
method for windows file name sanitization. Splits the unittest up
into several based on platform.
2013-02-03 00:37:36 -08:00
Gregory P. Smith
09aa752067
Refactor recently added bugfix into more testable code by using a
...
method for windows file name sanitization. Splits the unittest up
into several based on platform.
2013-02-03 00:36:32 -08:00
Serhiy Storchaka
fc23ec62a6
Fix the test for issue #6972 .
...
Remove trailing dots on Windows.
2013-02-02 19:52:45 +02:00
Serhiy Storchaka
672671da47
Fix the test for issue #6972 .
...
Remove trailing dots on Windows.
2013-02-02 19:51:37 +02:00
Serhiy Storchaka
e5e6444497
Fix the test for issue #6972 .
...
Remove trailing dots on Windows.
2013-02-02 19:50:59 +02:00
Gregory P. Smith
ae42ec8004
Fixes Issue #6972 : The zipfile module no longer overwrites files outside of
...
its destination path when extracting malicious zip files.
2013-02-01 11:35:00 -08:00
Gregory P. Smith
193e1be72d
Fixes Issue #6972 : The zipfile module no longer overwrites files outside of
...
its destination path when extracting malicious zip files.
2013-02-01 11:31:31 -08:00
Gregory P. Smith
b47acbf46a
Fixes Issue #6972 : The zipfile module no longer overwrites files outside of
...
its destination path when extracting malicious zip files.
2013-02-01 11:22:43 -08:00
Serhiy Storchaka
db58e15ee5
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:30:36 +02:00
Serhiy Storchaka
d72bfe9eb9
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:29:20 +02:00