History log of /external/python/cpython2/Lib/test/test_zlib.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
1e411c5c78b67cefb7a4ef89bd49eba5f7b5125d 23-Jul-2016 Martin Panter <vadmium+py@gmail.com> Issue #27130: Fix handling of buffers exceeding (U)INT_MAX in “zlib” module

Ported from patches by Xiang Zhang, Nadeem Vawda, and myself.
/external/python/cpython2/Lib/test/test_zlib.py
6ecfab85d9ec39d6398204f9a4be3a299e88c108 27-May-2016 Martin Panter <vadmium+py@gmail.com> Issue #5784: Cannot test wbits=0 unless we know we have zlib v1.2.3.5
/external/python/cpython2/Lib/test/test_zlib.py
9c946bbf2093f6fb85a4bbe68362d87daead6c98 27-May-2016 Martin Panter <vadmium+py@gmail.com> Issue #5784: Expand documentation and tests for zlib wbits parameter

Based on documentation by AM Kuchling.
/external/python/cpython2/Lib/test/test_zlib.py
6a8163a928f9ff04242580c09216431ddd39cdbc 15-Apr-2016 Martin Panter <vadmium+py@gmail.com> Correct “an” → “a” with “Unicode”, “user”, “UTF”, etc

This affects documentation and code comments.
/external/python/cpython2/Lib/test/test_zlib.py
76e6cc15b26e58685084497c869decd2a5275b21 12-Nov-2015 Serhiy Storchaka <storchaka@gmail.com> Issue #22995: Backported additional tests for non-pickleable types.
/external/python/cpython2/Lib/test/test_zlib.py
32e23e739f858fcf47332e437d6c4d4f14b2b697 03-Nov-2013 Serhiy Storchaka <storchaka@gmail.com> Issue #18702: All skipped tests now reported as skipped.
/external/python/cpython2/Lib/test/test_zlib.py
3c30970d2910c6a6411bd8e1c0e2fe1bdfb99726 11-Nov-2012 Nadeem Vawda <nadeem.vawda@gmail.com> Issue #16411: Fix a bug where zlib.decompressobj().flush() might try to access previously-freed memory.

Patch by Serhiy Storchaka.
/external/python/cpython2/Lib/test/test_zlib.py
252f4dc6c9a418f83749bbfe76b672c800e6a08b 11-Nov-2012 Nadeem Vawda <nadeem.vawda@gmail.com> Issue #16350, part 2: Set unused_data (and unconsumed_tail) correctly in decompressobj().flush().

Additionally, fix a bug where a MemoryError in allocating a bytes object could
leave the decompressor object in an invalid state (with its unconsumed_tail
member being NULL).

Patch by Serhiy Storchaka.
/external/python/cpython2/Lib/test/test_zlib.py
6cad3712b316a9b3436e6ee455909f655404d236 05-Nov-2012 Nadeem Vawda <nadeem.vawda@gmail.com> Issue #16350: Fix zlib decompressor handling of unused_data with multiple calls to decompress() after EOF.

Patch by Serhiy Storchaka.
/external/python/cpython2/Lib/test/test_zlib.py
0cc4fd9df7e2a6d6a47c20e66c5b22d590c6be51 14-May-2011 Nadeem Vawda <nadeem.vawda@gmail.com> Issue #12050: zlib.decompressobj().decompress() now clears the unconsumed_tail
attribute when called without a max_length argument.
/external/python/cpython2/Lib/test/test_zlib.py
3b066a7e82172debf6e12fadf3d94ba2cbe850de 07-May-2011 Nadeem Vawda <nadeem.vawda@gmail.com> Issue #11277: Remove useless test from test_zlib.
/external/python/cpython2/Lib/test/test_zlib.py
28a8e9637888de3c254e624576d2ecc54a8f2ae6 04-May-2011 Victor Stinner <victor.stinner@haypocalc.com> Issue #11277: oops, fix checksum values of test_zlib on 32 bits
/external/python/cpython2/Lib/test/test_zlib.py
7fd90c403d866945bed26cfe2feaf1bb5c095e66 04-May-2011 Victor Stinner <victor.stinner@haypocalc.com> Issue #11277: test_zlib tests a buffer of 1 GB on 32 bits

(instead of a buffer of 2 GB)
/external/python/cpython2/Lib/test/test_zlib.py
fb5d3e75bba8dfb567acefa6fd56ac56721bfe95 04-May-2011 Victor Stinner <victor.stinner@haypocalc.com> Issue #11277: fix issue number in a test_zlib comment
/external/python/cpython2/Lib/test/test_zlib.py
e4163e2c8d1882b7318cbaf1d5ba78c0c7070734 03-May-2011 Victor Stinner <victor.stinner@haypocalc.com> Issue #10276: Fix test_zlib, m may be undefined in the finally block
/external/python/cpython2/Lib/test/test_zlib.py
f9fb43492cf22f4047528345a978479bca326161 03-May-2011 Victor Stinner <victor.stinner@haypocalc.com> Issue #10276: test_zlib checks that inputs of 2 GB are handled correctly by
crc32() and adler32(). Patch written by Steffen Daode Nurpmeso.
/external/python/cpython2/Lib/test/test_zlib.py
fc3bfad2e0376ea5aa8a0c5352aafd3d731aaad7 12-May-2010 Antoine Pitrou <solipsis@pitrou.net> Issue #8681: Make the zlib module's error messages more informative when
the zlib itself doesn't give any detailed explanation.
/external/python/cpython2/Lib/test/test_zlib.py
37ffc3e3ba18d0e54ea6f79e9c8aad94f0b41a7d 12-May-2010 Antoine Pitrou <solipsis@pitrou.net> Issue #8672: Add a zlib test ensuring that an incomplete stream can be
handled by a decompressor object without errors (it returns incomplete
uncompressed data).
/external/python/cpython2/Lib/test/test_zlib.py
3843cd8e86673ce8969c6e948cd15735168882d3 07-May-2010 Antoine Pitrou <solipsis@pitrou.net> Issue #8571: Fix an internal error when compressing or decompressing a
chunk larger than 1GB with the zlib module's compressor and decompressor
objects.
/external/python/cpython2/Lib/test/test_zlib.py
3b4c989cfdb396fc0e1800846b4de76a382bd77c 06-Apr-2010 Antoine Pitrou <solipsis@pitrou.net> Issue #8193: Fix test_zlib failure with zlib 1.2.4.
/external/python/cpython2/Lib/test/test_zlib.py
5c8da86f3a515ce1a6d5f27fd15e3c5f4d8e931e 01-Jul-2009 Benjamin Peterson <benjamin@python.org> convert usage of fail* to assert*
/external/python/cpython2/Lib/test/test_zlib.py
3db8a3432bd84b58bdc7da2c9872777c537a4d09 31-Mar-2009 R. David Murray <rdmurray@bitdance.com> Change more tests to use import_module for the modules that
should cause tests to be skipped. Also rename import_function
to the more descriptive get_attribute and add a docstring.
/external/python/cpython2/Lib/test/test_zlib.py
79e42a0e0817b9c9fc23b333524427662b33986d 09-Apr-2008 Gregory P. Smith <greg@mad-scientist.com> Fix zlib crash from zlib.decompressobj().flush(val) when val was not positive.
It tried to allocate negative or zero memory. That fails.
/external/python/cpython2/Lib/test/test_zlib.py
88440960f9f430581ba5766aee1f0712ac96cb54 25-Mar-2008 Gregory P. Smith <greg@mad-scientist.com> A stab in the dark attempt to fix the alpha/tru64 buildbot problem and add more
test coverage of valid inputs to zlib.crc32.
/external/python/cpython2/Lib/test/test_zlib.py
c856fa811dfdd6d17396d9aa522eea19b0f46c93 18-Mar-2008 Gregory P. Smith <greg@mad-scientist.com> Add a test to make sure zlib.crc32 and binascii.crc32 return the same thing.
Fix a buglet in binascii.crc32, the second optional argument could previously
have a signedness mismatch with the C variable its going into.
/external/python/cpython2/Lib/test/test_zlib.py
f48f9d38c02ef914194eeeeb6cdae770e218af00 17-Mar-2008 Gregory P. Smith <greg@mad-scientist.com> Force zlib.crc32 and zlib.adler32 to return a signed integer on all platforms
regardless of the native sizeof(long) used in the integer object.

This somewhat odd behavior of returning a signed is maintained in 2.x for
compatibility reasons of always returning an integer rather than a long object.

Fixes Issue1202 for Python 2.6
/external/python/cpython2/Lib/test/test_zlib.py
ec5601945adc4fe16b8263305e825b216355a712 15-Oct-2007 Armin Rigo <arigo@tunes.org> test_bigbits was not testing what it seemed to.
/external/python/cpython2/Lib/test/test_zlib.py
d0bfa7454169606cfc0881c22e55c623d80c016c 24-Apr-2007 Collin Winter <collinw@gmail.com> Remove code that hasn't been called in years.
/external/python/cpython2/Lib/test/test_zlib.py
6e73aaab474ab9df512e8f24029ed1c57f39c619 12-Jun-2006 Neal Norwitz <nnorwitz@gmail.com> Patch #1503046, Conditional compilation of zlib.(de)compressobj.copy

copy is only in newer versions of zlib. This should allow zlibmodule
to work with older versions like the Tru64 buildbot.
/external/python/cpython2/Lib/test/test_zlib.py
8d3342b489c3f0e68efe0b78f8aec48cb8e8d70c 16-May-2006 Georg Brandl <georg@python.org> Patch #1435422: zlib's compress and decompress objects now have a
copy() method.
/external/python/cpython2/Lib/test/test_zlib.py
bb7e800506c5d27c9105bc47b09ac368dddb4492 22-Nov-2005 Andrew M. Kuchling <amk@amk.ca> [Patch #1350573] zlib.crc32 doesn't handle 0xffffffff seed. Add tests and bugfix. Bug reported by John Schmidt; bugfix by Danny Yoo.
/external/python/cpython2/Lib/test/test_zlib.py
5a9fb3c415d1204c7f2c12243ba5d46f5964dcbd 07-Jan-2005 Tim Peters <tim.peters@gmail.com> Whitespace normalization.
/external/python/cpython2/Lib/test/test_zlib.py
3b585b30c04489f869098e5769105c7319d211c1 28-Dec-2004 Andrew M. Kuchling <amk@amk.ca> [Bug #1083110] calling .flush() on decompress objects causes a segfault due to an uninitialized pointer: fixes the problem and adds a test case
/external/python/cpython2/Lib/test/test_zlib.py
6412b121f67b037c1f9e14d75da26121751c2d3d 05-Jun-2004 Neil Schemenauer <nascheme@enme.ucalgary.ca> Remove a number of tests that differ only in input data size. It seems
no bug motivated their inclusion and the chance of them triggering a
problem seems unlikely. Refactor to reduce code duplication. Rename
'hamlet_scene' to 'HAMLET_SCENE'. Test is much faster now. Closes #960995.
/external/python/cpython2/Lib/test/test_zlib.py
94afd3e7aef46fe4cb22f1f6b7026571897176e4 05-Jun-2004 Neil Schemenauer <nascheme@enme.ucalgary.ca> Remove lots of magic constants.
/external/python/cpython2/Lib/test/test_zlib.py
6d362b25c5125070ddd58f0bfaf79cb67e4f2cd4 31-Aug-2003 Raymond Hettinger <python@rcn.com> SF bug #785222: zlib monotonic test

For smaller datasets, it is not always true the increasing the compression
level always results in better compression. Removed the test which made
this invalid assumption.
/external/python/cpython2/Lib/test/test_zlib.py
21d3a32b99c5763444c34c189ef653ac9745f3c4 01-May-2003 Walter Dörwald <walter@livinglogic.de> Combine the functionality of test_support.run_unittest()
and test_support.run_classtests() into run_unittest()
and use it wherever possible.

Also don't use "from test.test_support import ...", but
"from test import test_support" in a few spots.

From SF patch #662807.
/external/python/cpython2/Lib/test/test_zlib.py
f359410ce22749da69b8adb5a3c23f78876292c6 27-Feb-2003 Guido van Rossum <guido@python.org> Use floor division (//).
/external/python/cpython2/Lib/test/test_zlib.py
f2715e076435b74638acb81512c2ee014f75aea2 19-Feb-2003 Tim Peters <tim.peters@gmail.com> Whitespace normalization.
/external/python/cpython2/Lib/test/test_zlib.py
7d9ea5013f2f6122aa83a68429bf2dd5e5a00017 03-Feb-2003 Guido van Rossum <guido@python.org> - Thanks to Scott David Daniels, a subtle bug in how the zlib
extension implemented flush() was fixed. Scott also rewrite the
zlib test suite using the unittest module. (SF bug #640230 and
patch #678531.)

Backport candidate I think.
/external/python/cpython2/Lib/test/test_zlib.py
a6fa0e6f2e0e2df20b008f3e5c5b0be25a0516de 12-Aug-2002 Guido van Rossum <guido@python.org> Portable way of producing unsigned 32-bit hex output to print the
CRCs.
/external/python/cpython2/Lib/test/test_zlib.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_zlib.py
c72737e7b6ec3beeecafbef75fbc31e22e0d710b 19-Apr-2002 Jeremy Hylton <jeremy@alum.mit.edu> Fix SF #544995 (zlib crash on second flush call)
Bug fix by mhammond.

Bug fix candidate for 2.2, not present in 2.1.
/external/python/cpython2/Lib/test/test_zlib.py
e0c446bb4ad67294f42d4cb53b4ff28413bd8dde 18-Oct-2001 Tim Peters <tim.peters@gmail.com> Whitespace normalization.
/external/python/cpython2/Lib/test/test_zlib.py
511e2cacc4aa67a83ed7c0ae34355407bdd13c57 16-Oct-2001 Jeremy Hylton <jeremy@alum.mit.edu> [ #403753 ] zlib decompress; uncontrollable memory usage

Mostly by Toby Dickenson and Titus Brown.

Add an optional argument to a decompression object's decompress()
method. The argument specifies the maximum length of the return
value. If the uncompressed data exceeds this length, the excess data
is stored as the unconsumed_tail attribute. (Not to be confused with
unused_data, which is a separate issue.)

Difference from SF patch: Default value for unconsumed_tail is ""
rather than None. It's simpler if the attribute is always a string.
/external/python/cpython2/Lib/test/test_zlib.py
fcfc8d5c0e58644d60e73a19679243a86d0bdc84 10-Aug-2001 Andrew M. Kuchling <amk@amk.ca> Patch #441091 from Finn Bock: the more advanced flush options are not
available in java, so only use the advanced flush options if they
are defined in the zlib module.
/external/python/cpython2/Lib/test/test_zlib.py
0009c4ea590b5bb4c00c33bc96dca47a42e720f1 21-Feb-2001 Tim Peters <tim.peters@gmail.com> Whitespace normalization.
/external/python/cpython2/Lib/test/test_zlib.py
9a0f98e0a140caed40006f9c9990d028ffa9ffd1 21-Feb-2001 Andrew M. Kuchling <amk@amk.ca> Add test case from bug #124981: zlib decompress of sync-flushed data
fails
/external/python/cpython2/Lib/test/test_zlib.py
8e6d44eedc26cf9869d5a41e743ddf6b4df1aa55 14-Feb-2001 Andrew M. Kuchling <amk@amk.ca> Patch #103748 from Toby Dickenson: fix typo in test_zlib that turns one
test case into a no-op because ''.join('hello world') == 'hello world'
/external/python/cpython2/Lib/test/test_zlib.py
83ff7498272c5f3acbda9b3cad0e2044ab7547c2 09-Feb-2001 Eric S. Raymond <esr@thyrsus.com> String method conversion.
/external/python/cpython2/Lib/test/test_zlib.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_zlib.py
a05e293a219f0fbaf4301fa7a292b9578a523675 28-Jun-2000 Jeremy Hylton <jeremy@alum.mit.edu> typos fixed by Rob Hooft
/external/python/cpython2/Lib/test/test_zlib.py
ad892dc80d2d42337c12499e679e53f627244abf 10-Feb-2000 Fred Drake <fdrake@acm.org> Make this pass the -tt test.
/external/python/cpython2/Lib/test/test_zlib.py
dca7e00fd59209bfd823b4111ab73df1ee28aa6d 22-Mar-1999 Andrew M. Kuchling <amk@amk.ca> Added simple test for the flush() method of compression objects, trying the
different flush values Z_NO_FLUSH, Z_SYNC_FLUSH, Z_FULL_FLUSH.
/external/python/cpython2/Lib/test/test_zlib.py
446898ff4aebc5ed8f641d8eb4ee2c31b3f3be3c 24-Apr-1998 Guido van Rossum <guido@python.org> Use hex() when outputting the various checksums so the test output is the
same on 32 and 64 bit machines.
/external/python/cpython2/Lib/test/test_zlib.py
629bcfb8f907cf25bcdadb6a3af5f154fc0d5550 18-Dec-1997 Guido van Rossum <guido@python.org> Make this test succeed even when using "import test.test_zlib".
/external/python/cpython2/Lib/test/test_zlib.py
9dc2b8ee073c26d27e712b5bb78f0bd7285fd1f9 05-Sep-1997 Jeremy Hylton <jeremy@alum.mit.edu> Many more tests, including tests of many optional arguments.
/external/python/cpython2/Lib/test/test_zlib.py
c95a6c1af5cdbba38ccc7eb9398df01bc24dd731 15-Aug-1997 Guido van Rossum <guido@python.org> Use imp.find_module() as the most certain way to find the test data.
/external/python/cpython2/Lib/test/test_zlib.py
6eb4b6a0bd70e366a1a3e735a5df93948968ea4d 15-Aug-1997 Jeremy Hylton <jeremy@alum.mit.edu> test the zlib module
only produce output if somethign goes wrong
/external/python/cpython2/Lib/test/test_zlib.py