summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_zlib.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #27130: Fix handling of buffers exceeding (U)INT_MAX in “zlib” moduleMartin Panter2016-07-231-0/+120
| | | | Ported from patches by Xiang Zhang, Nadeem Vawda, and myself.
* Issue #5784: Cannot test wbits=0 unless we know we have zlib v1.2.3.5Martin Panter2016-05-271-2/+0
|
* Issue #5784: Expand documentation and tests for zlib wbits parameterMartin Panter2016-05-271-0/+43
| | | | Based on documentation by AM Kuchling.
* Correct “an” → “a” with “Unicode”, “user”, “UTF”, etcMartin Panter2016-04-151-1/+1
| | | | This affects documentation and code comments.
* Issue #22995: Backported additional tests for non-pickleable types.Serhiy Storchaka2015-11-121-0/+11
|
* Issue #18702: All skipped tests now reported as skipped.Serhiy Storchaka2013-11-031-78/+87
|
* Issue #16411: Fix a bug where zlib.decompressobj().flush() might try to ↵Nadeem Vawda2012-11-111-0/+12
| | | | | | access previously-freed memory. Patch by Serhiy Storchaka.
* Issue #16350, part 2: Set unused_data (and unconsumed_tail) correctly in ↵Nadeem Vawda2012-11-111-9/+21
| | | | | | | | | | 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.
* Issue #16350: Fix zlib decompressor handling of unused_data with multiple ↵Nadeem Vawda2012-11-041-0/+13
| | | | | | calls to decompress() after EOF. Patch by Serhiy Storchaka.
* Issue #12050: zlib.decompressobj().decompress() now clears the unconsumed_tailNadeem Vawda2011-05-141-0/+9
| | | | attribute when called without a max_length argument.
* Issue #11277: Remove useless test from test_zlib.Nadeem Vawda2011-05-071-42/+0
|
* Issue #11277: oops, fix checksum values of test_zlib on 32 bitsVictor Stinner2011-05-041-2/+6
|
* Issue #11277: test_zlib tests a buffer of 1 GB on 32 bitsVictor Stinner2011-05-041-6/+15
| | | | (instead of a buffer of 2 GB)
* Issue #11277: fix issue number in a test_zlib commentVictor Stinner2011-05-041-1/+1
|
* Issue #10276: Fix test_zlib, m may be undefined in the finally blockVictor Stinner2011-05-031-1/+1
|
* Issue #10276: test_zlib checks that inputs of 2 GB are handled correctly byVictor Stinner2011-05-031-3/+38
| | | | crc32() and adler32(). Patch written by Steffen Daode Nurpmeso.
* Issue #8681: Make the zlib module's error messages more informative whenAntoine Pitrou2010-05-111-0/+7
| | | | the zlib itself doesn't give any detailed explanation.
* Issue #8672: Add a zlib test ensuring that an incomplete stream can beAntoine Pitrou2010-05-111-0/+13
| | | | | handled by a decompressor object without errors (it returns incomplete uncompressed data).
* Issue #8571: Fix an internal error when compressing or decompressing aAntoine Pitrou2010-05-071-3/+59
| | | | | chunk larger than 1GB with the zlib module's compressor and decompressor objects.
* Issue #8193: Fix test_zlib failure with zlib 1.2.4.Antoine Pitrou2010-04-061-1/+1
|
* convert usage of fail* to assert*Benjamin Peterson2009-06-301-6/+6
|
* Change more tests to use import_module for the modules thatR. David Murray2009-03-301-1/+2
| | | | | should cause tests to be skipped. Also rename import_function to the more descriptive get_attribute and add a docstring.
* Fix zlib crash from zlib.decompressobj().flush(val) when val was not positive.Gregory P. Smith2008-04-091-0/+5
| | | | It tried to allocate negative or zero memory. That fails.
* A stab in the dark attempt to fix the alpha/tru64 buildbot problem and add moreGregory P. Smith2008-03-251-0/+9
| | | | test coverage of valid inputs to zlib.crc32.
* Add a test to make sure zlib.crc32 and binascii.crc32 return the same thing.Gregory P. Smith2008-03-181-0/+6
| | | | | Fix a buglet in binascii.crc32, the second optional argument could previously have a signedness mismatch with the C variable its going into.
* Force zlib.crc32 and zlib.adler32 to return a signed integer on all platformsGregory P. Smith2008-03-171-0/+9
| | | | | | | | | 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
* test_bigbits was not testing what it seemed to.Armin Rigo2007-10-151-4/+8
|
* Remove code that hasn't been called in years.Collin Winter2007-04-241-34/+0
|
* Patch #1503046, Conditional compilation of zlib.(de)compressobj.copyNeal Norwitz2006-06-121-57/+59
| | | | | copy is only in newer versions of zlib. This should allow zlibmodule to work with older versions like the Tru64 buildbot.
* Patch #1435422: zlib's compress and decompress objects now have aGeorg Brandl2006-05-161-0/+57
| | | | copy() method.
* [Patch #1350573] zlib.crc32 doesn't handle 0xffffffff seed. Add tests and ↵Andrew M. Kuchling2005-11-221-0/+2
| | | | bugfix. Bug reported by John Schmidt; bugfix by Danny Yoo.
* Whitespace normalization.Tim Peters2005-01-071-1/+1
|
* [Bug #1083110] calling .flush() on decompress objects causes a segfault due ↵Andrew M. Kuchling2004-12-281-0/+10
| | | | to an uninitialized pointer: fixes the problem and adds a test case
* Remove a number of tests that differ only in input data size. It seemsNeil Schemenauer2004-06-051-161/+59
| | | | | | 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.
* Remove lots of magic constants.Neil Schemenauer2004-06-051-23/+38
|
* SF bug #785222: zlib monotonic testRaymond Hettinger2003-08-311-11/+0
| | | | | | 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.
* Combine the functionality of test_support.run_unittest()Walter Dörwald2003-05-011-12/+12
| | | | | | | | | | 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.
* Use floor division (//).Guido van Rossum2003-02-271-3/+3
|
* Whitespace normalization.Tim Peters2003-02-191-2/+1
|
* - Thanks to Scott David Daniels, a subtle bug in how the zlibGuido van Rossum2003-02-031-163/+444
| | | | | | | | 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.
* Portable way of producing unsigned 32-bit hex output to print theGuido van Rossum2002-08-121-2/+4
| | | | CRCs.
* Get rid of relative imports in all unittests. Now anything thatBarry Warsaw2002-07-231-1/+1
| | | | | | | | | | | 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. :)
* Fix SF #544995 (zlib crash on second flush call)Jeremy Hylton2002-04-191-0/+6
| | | | | | Bug fix by mhammond. Bug fix candidate for 2.2, not present in 2.1.
* Whitespace normalization.Tim Peters2001-10-181-1/+1
|
* [ #403753 ] zlib decompress; uncontrollable memory usageJeremy Hylton2001-10-161-0/+30
| | | | | | | | | | | | | 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.
* Patch #441091 from Finn Bock: the more advanced flush options are notAndrew M. Kuchling2001-08-101-15/+20
| | | | | available in java, so only use the advanced flush options if they are defined in the zlib module.
* Whitespace normalization.Tim Peters2001-02-211-2/+2
|
* Add test case from bug #124981: zlib decompress of sync-flushed dataAndrew M. Kuchling2001-02-211-0/+26
| | | | fails
* Patch #103748 from Toby Dickenson: fix typo in test_zlib that turns oneAndrew M. Kuchling2001-02-141-1/+1
| | | | test case into a no-op because ''.join('hello world') == 'hello world'
* String method conversion.Eric S. Raymond2001-02-091-3/+2
|