summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_zlib.py
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Make reindent.py happy (convert everything to 4-space indents!).Fred Drake2000-10-231-8/+7
|
* typos fixed by Rob HooftJeremy Hylton2000-06-281-1/+1
|
* Make this pass the -tt test.Fred Drake2000-02-101-8/+8
|
* Added simple test for the flush() method of compression objects, trying theAndrew M. Kuchling1999-03-221-0/+13
| | | | different flush values Z_NO_FLUSH, Z_SYNC_FLUSH, Z_FULL_FLUSH.
* Use hex() when outputting the various checksums so the test output is theGuido van Rossum1998-04-241-3/+3
| | | | same on 32 and 64 bit machines.
* Make this test succeed even when using "import test.test_zlib".Guido van Rossum1997-12-181-2/+5
|
* Many more tests, including tests of many optional arguments.Jeremy Hylton1997-09-041-0/+47
|
* Use imp.find_module() as the most certain way to find the test data.Guido van Rossum1997-08-151-1/+5
|
* test the zlib moduleJeremy Hylton1997-08-151-0/+94
only produce output if somethign goes wrong