History log of /external/python/cpython2/Lib/test/test_zipfile.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
abcd5d5fbd7810e1109d37c63ec295b505595155 23-Oct-2016 Serhiy Storchaka <storchaka@gmail.com> Issue #28115: ZIP creation test requires zlib.
/external/python/cpython2/Lib/test/test_zipfile.py
e2a3c77546b014be6c640457deca33e34a823532 23-Oct-2016 Serhiy Storchaka <storchaka@gmail.com> Issue #28115: Added tests for CLI of the zipfile module.
/external/python/cpython2/Lib/test/test_zipfile.py
58ab4b57da2e5db7ff9b9940dd21bbbe4d804957 07-Oct-2016 Serhiy Storchaka <storchaka@gmail.com> 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.
/external/python/cpython2/Lib/test/test_zipfile.py
b1d867f14965e2369d31a3fcdab5bca34b4d81b4 26-May-2016 Martin Panter <vadmium+py@gmail.com> Issue #27076: Doc, comment and test function name spelling fixes

Most fixes to Doc/ and Lib/ directories by Ville Skyttä.
/external/python/cpython2/Lib/test/test_zipfile.py
0e1c5f7dae23ce0a3a8604a950349c2f0767de32 13-May-2016 Serhiy Storchaka <storchaka@gmail.com> Restored test_interleaved. After issue #8886 it was a duplicate of
test_different_file.
/external/python/cpython2/Lib/test/test_zipfile.py
90f5f5151c4542d391660c726d611350b28ff4f2 19-Sep-2015 Serhiy Storchaka <storchaka@gmail.com> Issue #25101: Try to create a file to test write access in test_zipfile.
/external/python/cpython2/Lib/test/test_zipfile.py
4c2bada216b11d2a1af0e570f113ce529fb624ce 14-Feb-2015 Serhiy Storchaka <storchaka@gmail.com> Issue #17753: Skip test_zipfile tests which require write access to test
and email.test.
/external/python/cpython2/Lib/test/test_zipfile.py
c328d11ef184e706e42149d740d99044d7d8981a 26-Jan-2015 Serhiy Storchaka <storchaka@gmail.com> Issue #14099: Backout changeset c2c4cde55f6f (except adapted tests).
/external/python/cpython2/Lib/test/test_zipfile.py
45aa771fe9ae3e1c4a0daaa5a68b29740eb0cb02 03-Dec-2014 Serhiy Storchaka <storchaka@gmail.com> 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.
/external/python/cpython2/Lib/test/test_zipfile.py
6d343e708b44fc7100df0fd9b9f85276360fb4cd 23-Sep-2014 Serhiy Storchaka <storchaka@gmail.com> Issue #20912: Now directories added to ZIP file have correct Unix and MS-DOS
directory attributes.
/external/python/cpython2/Lib/test/test_zipfile.py
1af262c65cbc7012086b389654eff9438acfbe66 23-Sep-2014 Serhiy Storchaka <storchaka@gmail.com> Fixed test_large_file_exception. Ported tests for large count of files
to TestZip64InSmallFiles.
/external/python/cpython2/Lib/test/test_zipfile.py
c459755df217824dbfe261debd8e6adff977a10d 23-Jun-2014 Benjamin Peterson <benjamin@python.org> adjust zipfile tests for splitdrive improvements
/external/python/cpython2/Lib/test/test_zipfile.py
0344a0643d72c0a3557b329c64fc5f04be677bba 30-May-2014 Gregory P. Smith <greg@krypto.org> 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.
/external/python/cpython2/Lib/test/test_zipfile.py
352eb4f4324b3d7ba3a23e4dbf56cd1bf68a4a52 03-Apr-2014 Benjamin Peterson <benjamin@python.org> properly close files in test_zipfile (#20887)

Patch by Matti Picus.
/external/python/cpython2/Lib/test/test_zipfile.py
49259359eebaead3973816731fcb98bff0673900 20-Jan-2014 Serhiy Storchaka <storchaka@gmail.com> Issue #20262: Warnings are raised now when duplicate names are added in the
ZIP file or too long ZIP file comment is truncated.
/external/python/cpython2/Lib/test/test_zipfile.py
db03e6b842011dfb1a419a23e1fbc8732fd7763f 08-May-2013 Serhiy Storchaka <storchaka@gmail.com> Issue #17656: Skip test_extract_unicode_filenames if the FS encoding
doesn't support non-ASCII filenames.
/external/python/cpython2/Lib/test/test_zipfile.py
6fa83f99af03cc84caccc19988c1e346958789cb 12-Apr-2013 Serhiy Storchaka <storchaka@gmail.com> Issue #17656: Fix extraction of zip files with unicode member paths.
/external/python/cpython2/Lib/test/test_zipfile.py
2a051fa117ae022f1d1c098ffce9f17e1491fba4 02-Feb-2013 Serhiy Storchaka <storchaka@gmail.com> Fix test for issue #6972.
/external/python/cpython2/Lib/test/test_zipfile.py
05fd7441227d47eeaec2fff44da05d3149055a55 02-Feb-2013 Serhiy Storchaka <storchaka@gmail.com> Preserve backslashes in malicious zip files for testing issue #6972.
/external/python/cpython2/Lib/test/test_zipfile.py
13e56c73b712b72133e3684bcff9cb1760cc891e 02-Feb-2013 Serhiy Storchaka <storchaka@gmail.com> Fix the test and remove trailing dots on Windows for issue #6972.
/external/python/cpython2/Lib/test/test_zipfile.py
608cc451c7798812826f886089f700330bde8e1c 01-Feb-2013 Gregory P. Smith <greg@krypto.org> Fixes Issue #6972: The zipfile module no longer overwrites files outside of
its destination path when extracting malicious zip files.
/external/python/cpython2/Lib/test/test_zipfile.py
0be506a5baf8b86c519e6074af43a0f91af603c6 31-Jan-2013 Serhiy Storchaka <storchaka@gmail.com> 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.
/external/python/cpython2/Lib/test/test_zipfile.py
4bb142b1b712d8e67c81687d396685fba55abf77 18-Dec-2012 Andrew Svetlov <andrew.svetlov@gmail.com> Issue #16714: use 'raise' exceptions, don't 'throw'.

Patch by Serhiy Storchaka.
/external/python/cpython2/Lib/test/test_zipfile.py
9e94972eede8b2bb9a16f867db3da9892759ac70 18-Nov-2012 Ezio Melotti <ezio.melotti@gmail.com> #14313: zipfile now raises NotImplementedError when the compression type is unknown.
/external/python/cpython2/Lib/test/test_zipfile.py
3f4ccbabaf8beacdc108dc476b1c2c7c5671109f 13-Apr-2012 R David Murray <rdmurray@bitdance.com> #14399: zipfile now correctly handles comments added to empty zipfiles.

Patch by Serhiy Storchaka.
/external/python/cpython2/Lib/test/test_zipfile.py
ddd40312d502257adbcad4e9bdcecd237900f95a 19-Oct-2011 Senthil Kumaran <senthil@uthcode.com> 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.
/external/python/cpython2/Lib/test/test_zipfile.py
873c583244193f15b57293bce579c8410e747e20 09-Jun-2011 R David Murray <rdmurray@bitdance.com> #10694: zipfile now ignores garbage at the end of a zipfile.

Original fix by 'rep', final patch (with tests) by Xuanji Li.
/external/python/cpython2/Lib/test/test_zipfile.py
0d654335689b88defdc6403624e3bfa8c0fd108b 20-Apr-2011 Brian Curtin <brian@python.org> Fix #8886. Use context managers throughout zipfile tests.

This was fixed in py3k SVN. Consider this a backport.
/external/python/cpython2/Lib/test/test_zipfile.py
67843b3886192a1ee31cc12edba2ad41b758c97d 02-Feb-2011 Éric Araujo <merwok@netwok.org> Fix typo: BadZipFile exists in 3.2+ only, not older versions.
/external/python/cpython2/Lib/test/test_zipfile.py
86e0c89b2a9c715939a7d7aee3dc271850eabd62 26-Nov-2010 Georg Brandl <georg@python.org> Merged revisions 85455 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
r85455 | georg.brandl | 2010-10-14 08:59:45 +0200 (Do, 14 Okt 2010) | 1 line

#1710703: write zipfile structures also in the case of closing a new, but empty, archive.
........
/external/python/cpython2/Lib/test/test_zipfile.py
e4195e8825a195e54967a4f7b02d83b11637ec1d 12-Sep-2010 Antoine Pitrou <solipsis@pitrou.net> Merged revisions 84737 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
r84737 | antoine.pitrou | 2010-09-12 16:51:20 +0200 (dim., 12 sept. 2010) | 4 lines

Issue #9837: The read() method of ZipExtFile objects (as returned by
ZipFile.open()) could return more bytes than requested.
........
/external/python/cpython2/Lib/test/test_zipfile.py
e1436d1092f26a4329a2b48c48539d5845ddce32 12-Aug-2010 Antoine Pitrou <solipsis@pitrou.net> Merged revisions 83959-83960 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
r83959 | antoine.pitrou | 2010-08-12 17:11:50 +0200 (jeu., 12 août 2010) | 5 lines

Issue #7467: when a file from a ZIP archive, its CRC is checked and a
BadZipfile error is raised if it doesn't match (as used to be the
case in Python 2.5 and earlier).
........
r83960 | antoine.pitrou | 2010-08-12 17:15:01 +0200 (jeu., 12 août 2010) | 3 lines

Typo.
........
/external/python/cpython2/Lib/test/test_zipfile.py
dd25e86cf47365269466bf0d28367d5f6dbc0c18 07-Feb-2010 Ronald Oussoren <ronaldoussoren@mac.com> Issue 6003: ZipFile.writestr "compression_type" argument
/external/python/cpython2/Lib/test/test_zipfile.py
94c33ebfa819873c0e265bf659bbdd2cbe2d6cd7 27-Jan-2010 Antoine Pitrou <solipsis@pitrou.net> Issue #7610: Reworked implementation of the internal
:class:`zipfile.ZipExtFile` class used to represent files stored inside
an archive. The new implementation is significantly faster and can
be wrapped in a :class:`io.BufferedReader` object for more speedups.
It also solves an issue where interleaved calls to `read()` and
`readline()` give wrong results. Patch by Nir Aides.
/external/python/cpython2/Lib/test/test_zipfile.py
b0f5adc3f4e098b1744eeac65fc830fb1df2b8ab 24-Jan-2010 Ezio Melotti <ezio.melotti@gmail.com> use assert[Not]IsInstance where appropriate
/external/python/cpython2/Lib/test/test_zipfile.py
aa98058cc44ba20f35c106d20918c6196b737561 24-Jan-2010 Ezio Melotti <ezio.melotti@gmail.com> use assert[Not]In where appropriate
/external/python/cpython2/Lib/test/test_zipfile.py
763f1e8d320aeb0c2f08d45625c49c852f2457a1 31-Dec-2009 Ezio Melotti <ezio.melotti@gmail.com> indentation and further alignment with py3k
/external/python/cpython2/Lib/test/test_zipfile.py
6d6b53cab8099c07aab70887aeef238b0c8eb94f 31-Dec-2009 Ezio Melotti <ezio.melotti@gmail.com> cleanup and refactoring
/external/python/cpython2/Lib/test/test_zipfile.py
569e61f35196cb765eb9940f75b27bb765e73073 30-Dec-2009 Ezio Melotti <ezio.melotti@gmail.com> #5511: Added the ability to use ZipFile as a context manager. Patch by Brian Curtin.
/external/python/cpython2/Lib/test/test_zipfile.py
1036a7f7e180ac3fd98e43832a04e38b4c7c9e83 12-Sep-2009 Ezio Melotti <ezio.melotti@gmail.com> #6026 - fix tests that failed without zlib
/external/python/cpython2/Lib/test/test_zipfile.py
3e5b027a64e9eccc8d2100e717c19f61d3a51d62 29-Jul-2009 Amaury Forgeot d'Arc <amauryfa@gmail.com> #6511: ZipFile will now raise BadZipfile when opening an empty or tiny file,
like it does for larger invalid files.
/external/python/cpython2/Lib/test/test_zipfile.py
d5a23e322feb023dafa2b528210ad45faca5f78c 15-Jul-2009 Ezio Melotti <ezio.melotti@gmail.com> methods' names pep8ification
/external/python/cpython2/Lib/test/test_zipfile.py
6cbfc12ccd28ec7b7deeff63cd80adcf93db8aa4 10-Jul-2009 Ezio Melotti <ezio.melotti@gmail.com> more cleanups and if zlib -> skipUnless(zlib)
/external/python/cpython2/Lib/test/test_zipfile.py
e7a0cc2aa86d984691b0612e13020fbce16d9b09 04-Jul-2009 Ezio Melotti <ezio.melotti@gmail.com> if zlib -> skipUnless(zlib) and minor cleanups
/external/python/cpython2/Lib/test/test_zipfile.py
5c8da86f3a515ce1a6d5f27fd15e3c5f4d8e931e 01-Jul-2009 Benjamin Peterson <benjamin@python.org> convert usage of fail* to assert*
/external/python/cpython2/Lib/test/test_zipfile.py
0b09c42ffec7b56b7f94c11d160ca083944c9cf8 24-May-2009 Martin v. Löwis <martin@v.loewis.de> Issue #6050: Don't fail extracting a directory from a zipfile if
the directory already exists.
/external/python/cpython2/Lib/test/test_zipfile.py
0dfcfc8b59610422def8ec49d2319ec51380e9fa 24-Jan-2009 Martin v. Löwis <martin@v.loewis.de> Issue #4710: Extract directories properly in the zipfile module;
allow adding directories to a zipfile.
/external/python/cpython2/Lib/test/test_zipfile.py
6f193e0e959432f2227c0380b970a82f58c8a0c8 27-Dec-2008 Antoine Pitrou <solipsis@pitrou.net> Issue #4756: zipfile.is_zipfile() now supports file-like objects.
Patch by Gabriel Genellina.
/external/python/cpython2/Lib/test/test_zipfile.py
5fdfa3e36d08e8627cd57d2f9653e1ec634f8355 25-Jul-2008 Antoine Pitrou <solipsis@pitrou.net> #3394: zipfile.writestr doesn't set external attributes, so files are extracted mode 000 on Unix
/external/python/cpython2/Lib/test/test_zipfile.py
8c4364127193100d0c3e267f5a49aadd096732a6 03-Jul-2008 Martin v. Löwis <martin@v.loewis.de> Patch #1622: Correct interpretation of various ZIP header fields.

Also fixes
- Issue #1526: Allow more than 64k files to be added to Zip64 file.

- Issue #1746: Correct handling of zipfile archive comments (previously
archives with comments over 4k were flagged as invalid). Allow writing
Zip files with archives by setting the 'comment' attribute of a ZipFile.
/external/python/cpython2/Lib/test/test_zipfile.py
112aa5032985925608844d7421e12703afd6ce41 20-May-2008 Georg Brandl <georg@python.org> Patch #1775025: allow opening zipfile members via ZipInfo instances.
Patch by Graham Horler.
/external/python/cpython2/Lib/test/test_zipfile.py
c3ad68c88a5c7eab2c70fa3a58aab547f60f61e0 05-May-2008 Martin v. Löwis <martin@v.loewis.de> Fix Unicode filename test.
/external/python/cpython2/Lib/test/test_zipfile.py
471617d6d324ca3d119ddaa7206d4b902475e4be 05-May-2008 Martin v. Löwis <martin@v.loewis.de> Issue #1734346: Support Unicode file names for zipfiles.
/external/python/cpython2/Lib/test/test_zipfile.py
a2af21262a13510b12d45cf67d92a563da4cf1b5 26-Jan-2008 Christian Heimes <christian@cheimes.de> Unit test fix from Giampaolo Rodola, #1938
/external/python/cpython2/Lib/test/test_zipfile.py
0c63fc23c4ca5b859a99e0d1864a41df6cc08d5f 20-Jan-2008 Gregory P. Smith <greg@mad-scientist.com> Fix zipfile decryption. The check for validity only worked on one
type of encrypted zip files. Files using extended local headers
needed to compare the check byte against different values. (according
to reading the infozip unzip crypt.c source code)

Fixes issue1003.
/external/python/cpython2/Lib/test/test_zipfile.py
62416bcf5ad46019f758aa212b05b3d60cb71ef3 07-Jan-2008 Georg Brandl <georg@python.org> #467924, patch by Alan McIntyre: Add ZipFile.extract and ZipFile.extractall.
/external/python/cpython2/Lib/test/test_zipfile.py
4b3ab6fcc09d93cfe47fd0087fa694f1166a7b0b 12-Jul-2007 Georg Brandl <georg@python.org> Patch #1675424: Added tests for uncovered code in the zipfile module.
The KeyError raised by Zipfile.getinfo for nonexistent names now has
a descriptive message.
/external/python/cpython2/Lib/test/test_zipfile.py
6cef076ba5edbfa42239924951d8acbb087b3b19 25-May-2007 Brett Cannon <bcannon@gmail.com> Remove direct call's to file's constructor and replace them with calls to
open() as ths is considered best practice.
/external/python/cpython2/Lib/test/test_zipfile.py
0d4c06e06e5ee1f3bb1fa8068114bd700d74864a 25-Apr-2007 Neal Norwitz <nnorwitz@gmail.com> Whitespace normalization. Ugh, we really need to do this more often.
You might want to review this change as it's my first time. Be gentle. :-)
/external/python/cpython2/Lib/test/test_zipfile.py
04a51ec8a331df2bd4ff64e150a016f8f10053e1 29-Mar-2007 Collin Winter <collinw@gmail.com> Make test_zipfile clean up its temporary files properly.
/external/python/cpython2/Lib/test/test_zipfile.py
ea5962f86e8550978446724dadcacd60e03feef2 12-Mar-2007 Tim Peters <tim.peters@gmail.com> Whitespace normalization.
/external/python/cpython2/Lib/test/test_zipfile.py
3eb764898676c3d8fd4df5c40f62607f3155037c 06-Mar-2007 Martin v. Löwis <martin@v.loewis.de> Patch #1121142: Implement ZipFile.open.
/external/python/cpython2/Lib/test/test_zipfile.py
84f6de9d7e4a65089531699f1c6efc4e15d13dd2 13-Feb-2007 Martin v. Löwis <martin@v.loewis.de> Patch #1517891: Make 'a' create the file if it doesn't exist.
Fixes #1514451.
/external/python/cpython2/Lib/test/test_zipfile.py
c6d626ed9f49daf84e72c817bce274a3547325ad 13-Feb-2007 Martin v. Löwis <martin@v.loewis.de> Patch #698833: Support file decryption in zipfile.
/external/python/cpython2/Lib/test/test_zipfile.py
a608bb228cd4ce83a30f08dc292645ceb6108ed4 15-Jun-2006 Tim Peters <tim.peters@gmail.com> Whitespace normalization.
/external/python/cpython2/Lib/test/test_zipfile.py
143cefb8461c2c684e904723be45f84d2c998466 15-Jun-2006 Ronald Oussoren <ronaldoussoren@mac.com> Patch #1446489 (zipfile: support for ZIP64)
/external/python/cpython2/Lib/test/test_zipfile.py
32cbc96150e4799d24ff04071f518e48b29f60a0 20-Feb-2006 Tim Peters <tim.peters@gmail.com> Whitespace normalization.
/external/python/cpython2/Lib/test/test_zipfile.py
8f7c54eaa5e363ef02e99518253b3cb17f6602e6 20-Feb-2006 Georg Brandl <georg@python.org> Bug #1413790: zipfile now sanitizes absolute archive names that are
not allowed by the specs.
/external/python/cpython2/Lib/test/test_zipfile.py
a45cacfc1c4fb2b7b1b5c74e1f6b56d6ca2c9e4c 20-Aug-2004 Tim Peters <tim.peters@gmail.com> Whitespace normalization.
/external/python/cpython2/Lib/test/test_zipfile.py
3caf9c1edd0623231489d998a81511c9fa991f5a 19-Aug-2004 Johannes Gijsbers <jlg@dds.nl> Port test_zipfile to unittest (patch #736962).
/external/python/cpython2/Lib/test/test_zipfile.py
c0fac96c29a3842d9370e4c954ae1f4d57f849d0 28-Jun-2003 Raymond Hettinger <python@rcn.com> SF patch #756996: Bare except in ZipFile.testzip()
(Contributed by Steven Taschuk)

Replaces a bare except that caused all errors to be mis-reported as
archive errors.

Added a related NEWS item.
/external/python/cpython2/Lib/test/test_zipfile.py
04f357cffef6d764f2f0ff2671dabde75ec250d1 23-Jul-2002 Barry Warsaw <barry@python.org> Get rid of relative imports in all unittests. Now anything that
imports e.g. test_support must do so using an absolute package name
such as "import test.test_support" or "from test import test_support".

This also updates the README in Lib/test, and gets rid of the
duplicate data dirctory in Lib/test/data (replaced by
Lib/email/test/data).

Now Tim and Jack can have at it. :)
/external/python/cpython2/Lib/test/test_zipfile.py
e2ae77b8b8a62e648bb1864a9b36ef3280984404 24-Oct-2001 Guido van Rossum <guido@python.org> SF patch #474590 -- RISC OS support
/external/python/cpython2/Lib/test/test_zipfile.py
bfce016a30da85c4a637ab4825e429da482a80c0 10-Apr-2001 Guido van Rossum <guido@python.org> When zlib can't be imported, zipfile raises RuntimeError, which causes
the test to be marked as failing rather than skipped. Add an explicit
"import zlib" to prevent this.
/external/python/cpython2/Lib/test/test_zipfile.py
7d3bad66e4b32fa65fce219661b16d75e90c152f 04-Apr-2001 Tim Peters <tim.peters@gmail.com> Sf bug [ #412214 ] ZipFile constructor leaves files open.
This applies the patch Fred Drake created to fix it.
I'm checking it in since I had to apply the patch anyway in order
to test its behavior on Windows.
/external/python/cpython2/Lib/test/test_zipfile.py
a19a168cccbc61b2a002475dd3b966b50983003e 29-Mar-2001 Tim Peters <tim.peters@gmail.com> Whitespace normalization.
/external/python/cpython2/Lib/test/test_zipfile.py
3d9091ece14ad53e48da7792245ebc4230df22e3 26-Mar-2001 Fred Drake <fdrake@acm.org> Itamar Shtull-Trauring <itamar@maxnm.com>:
Add support to zipfile to support opening an archive represented by an
open file rather than a file name.
/external/python/cpython2/Lib/test/test_zipfile.py
6e7e485d5d128a389c563298e51f9de13582d150 28-Feb-2001 Fred Drake <fdrake@acm.org> Added regression test for SF tracker bug #403871: AttributeError in
ZipFile.__del__() when there was an IOError opening the underlying
file in ZipFile.__init__().

This is an odd test: since the exception is in the __del__() method,
it is not propogated. This test will trigger it but regrtest.py
does not detect the failure (not sure why); we are dependent on it
actually being noticed by a user to get a new bug report if it ever
fails. ;-(

On the other hand, this makes sure that code gets exercised, so
a failure could be noticed!
/external/python/cpython2/Lib/test/test_zipfile.py
004d5e6880940ddbb38460986ac62ee0f1bae97d 23-Oct-2000 Fred Drake <fdrake@acm.org> Make reindent.py happy (convert everything to 4-space indents!).
/external/python/cpython2/Lib/test/test_zipfile.py
368f04ac462cf3f4a52cb4ac7bf23f523ff04298 10-Apr-2000 Guido van Rossum <guido@python.org> Test for zipfile.py, by Jim Ahlstrom.
/external/python/cpython2/Lib/test/test_zipfile.py