summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_zlib.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #23738: Merge 3.4 into 3.5Martin Panter2015-09-091-2/+6
|\
| * Issue #23738: Document and test actual keyword parameter namesMartin Panter2015-09-091-2/+6
| | | | | | | | Also fix signature because os.utime(..., ns=None) is not allowed.
* | Issue #21741: Update 147 test modules to use test discovery.Zachary Ware2015-04-131-12/+1
|/ | | | | | | I have compared output between pre- and post-patch runs of these tests to make sure there's nothing missing and nothing broken, on both Windows and Linux. The only differences I found were actually tests that were previously *not* run.
* Issue #18702: All skipped tests now reported as skipped.Serhiy Storchaka2013-11-031-87/+96
|
* 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 #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-10/+22
|\ \ | |/ | | | | | | | | | | | | | | | | 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, 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/+14
|\ \ | |/ | | | | | | | | calls to decompress() after EOF. 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 #13873: Fix crash in test_zlib when running on a small (<4GB) tmpfs.Nadeem Vawda2012-02-261-18/+5
| |
* | Tidy up comments from dd4f7d5c51c7 (zlib compression dictionary support).Nadeem Vawda2012-06-211-7/+6
| |
* | Issue #14684: Add support for predefined compression dictionaries to the ↵Nadeem Vawda2012-06-211-0/+30
| | | | | | | | | | | | zlib module. Original patch by Sam Rushing.
* | Simplify zlib bigmem tests.Nadeem Vawda2012-02-231-6/+2
| |
* | Fix previous fix (for test_zlib) to work on 32-bit systems.Nadeem Vawda2012-02-231-2/+2
| |
* | Issue #13873: Fix crash in test_zlib on bigmem buildbot.Nadeem Vawda2012-02-231-23/+5
| |
* | Fix typo in comment.Nadeem Vawda2012-01-281-1/+1
| |
* | Issue #13862: Relax zlib version test to avoid spurious failures.Nadeem Vawda2012-01-251-6/+6
| |
* | Start fixing test_bigmem:Antoine Pitrou2011-10-041-7/+7
|\ \ | |/ | | | | | | - bigmemtest is replaced by precisionbigmemtest - add a poor man's watchdog thread to print memory consumption
| * Start fixing test_bigmem:Antoine Pitrou2011-10-041-7/+7
| | | | | | | | | | - bigmemtest is replaced by precisionbigmemtest - add a poor man's watchdog thread to print memory consumption
* | Issue #12306: Add ZLIB_RUNTIME_VERSION to the zlib module.Nadeem Vawda2011-09-111-0/+12
| | | | | | | | | | | | While we're at it, also document ZLIB_VERSION. Patch by Torsten Landschoff.
* | Issue #12646: Add an 'eof' attribute to zlib.Decompress.Nadeem Vawda2011-08-131-0/+20
|/ | | | | | This will make it easier to detect truncated input streams. Also, make zlib's error messages more consistent.
* Merge: Fix copy-paste mistake in new zlib test.Nadeem Vawda2011-05-141-2/+4
|\
| * Fix copy-paste mistake in new zlib test.Nadeem Vawda2011-05-141-2/+4
| |
* | Merge: #8650: Make zlib.[de]compressobj().[de]compress() 64-bit clean.Nadeem Vawda2011-05-141-0/+11
|\ \ | |/ | | | | | | Raise an OverflowError if the input data is too large, instead of silently truncating the input and returning an incorrect result.
| * Issue #8650: Make zlib.[de]compressobj().[de]compress() 64-bit clean.Nadeem Vawda2011-05-141-0/+11
| | | | | | | | | | Raise an OverflowError if the input data is too large, instead of silently truncating the input and returning an incorrect result.
| * Issue #8650: Backport 64-bit safety fixes for compress() and decompress().Nadeem Vawda2011-05-141-0/+11
| |
* | Fix memory leaks in zlib.compress() and .decompress().Nadeem Vawda2011-05-141-0/+1
| | | | | | | | Also, make sure that test_zlib tests decompress() for overly-large inputs.
* | Merge: #12050: zlib.decompressobj().decompress() now clears the unconsumed_tailNadeem Vawda2011-05-141-0/+9
|\ \ | |/ | | | | attribute when called without a max_length argument.
| * Issue #12050: zlib.decompressobj().decompress() now clears the unconsumed_tailNadeem Vawda2011-05-141-0/+9
| | | | | | | | attribute when called without a max_length argument.
* | (Merge 3.1) Issue #11277: mmap.mmap() calls fcntl(fd, F_FULLFSYNC) on Mac OS XVictor Stinner2011-05-011-1/+1
|\ \ | |/ | | | | | | to get around a mmap bug with sparse files. Patch written by Steffen Daode Nurpmeso.
| * Issue #11277: mmap calls fcntl(fd, F_FULLFSYNC) on Mac OS X to get around aVictor Stinner2011-05-011-1/+1
| | | | | | | | mmap bug with sparse files. Patch written by Steffen Daode Nurpmeso.
| * Apparently, skipUnless() doesn't prevent the execution ofAntoine Pitrou2011-03-011-4/+4
| | | | | | | | setUp() under 3.1.
| * Merged revisions 88460,88464,88466,88486,88511,88652 via svnmerge fromAntoine Pitrou2011-02-281-1/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r88460 | antoine.pitrou | 2011-02-21 19:03:13 +0100 (lun., 21 févr. 2011) | 4 lines Issue #10276: Fix the results of zlib.crc32() and zlib.adler32() on buffers larger than 4GB. Patch by Nadeem Vawda. ........ r88464 | antoine.pitrou | 2011-02-21 20:05:08 +0100 (lun., 21 févr. 2011) | 3 lines Fix issues on 32-bit systems introduced by r88460 ........ r88466 | antoine.pitrou | 2011-02-21 20:28:40 +0100 (lun., 21 févr. 2011) | 3 lines Fix compile error under MSVC introduced by r88460. ........ r88486 | antoine.pitrou | 2011-02-22 00:41:12 +0100 (mar., 22 févr. 2011) | 5 lines Issue #4681: Allow mmap() to work on file sizes and offsets larger than 4GB, even on 32-bit builds. Initial patch by Ross Lagerwall, adapted for 32-bit Windows. ........ r88511 | antoine.pitrou | 2011-02-22 22:42:56 +0100 (mar., 22 févr. 2011) | 4 lines Issue #11277: finally fix Snow Leopard crash following r88460. (probably an OS-related issue with mmap) ........ r88652 | antoine.pitrou | 2011-02-26 16:58:05 +0100 (sam., 26 févr. 2011) | 4 lines Issue #9931: Fix hangs in GUI tests under Windows in certain conditions. Patch by Hirokazu Yamamoto. ........
| * Merged revisions 81100 via svnmerge fromAntoine Pitrou2010-05-111-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r81100 | antoine.pitrou | 2010-05-12 01:46:02 +0200 (mer., 12 mai 2010) | 10 lines Merged revisions 81098 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r81098 | antoine.pitrou | 2010-05-12 01:42:28 +0200 (mer., 12 mai 2010) | 5 lines Issue #8681: Make the zlib module's error messages more informative when the zlib itself doesn't give any detailed explanation. ........ ................
| * Merged revisions 81096 via svnmerge fromAntoine Pitrou2010-05-111-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r81096 | antoine.pitrou | 2010-05-12 01:36:40 +0200 (mer., 12 mai 2010) | 11 lines Merged revisions 81094 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r81094 | antoine.pitrou | 2010-05-12 01:32:31 +0200 (mer., 12 mai 2010) | 6 lines 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). ........ ................
| * Fix failure introduced in r80929.Antoine Pitrou2010-05-071-1/+1
| |
| * Merged revisions 80928 via svnmerge fromAntoine Pitrou2010-05-071-3/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r80928 | antoine.pitrou | 2010-05-07 19:04:02 +0200 (ven., 07 mai 2010) | 11 lines Merged revisions 80926 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r80926 | antoine.pitrou | 2010-05-07 18:50:34 +0200 (ven., 07 mai 2010) | 5 lines Issue #8571: Fix an internal error when compressing or decompressing a chunk larger than 1GB with the zlib module's compressor and decompressor objects. ........ ................
| * Merged revisions 79849 via svnmerge fromAntoine Pitrou2010-04-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r79849 | antoine.pitrou | 2010-04-06 19:23:13 +0200 (mar., 06 avril 2010) | 9 lines Merged revisions 79848 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r79848 | antoine.pitrou | 2010-04-06 19:21:09 +0200 (mar., 06 avril 2010) | 3 lines Issue #8193: Fix test_zlib failure with zlib 1.2.4. ........ ................
| * Merged revisions 76836 via svnmerge fromAntoine Pitrou2009-12-141-20/+37
| | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r76836 | antoine.pitrou | 2009-12-14 19:00:06 +0100 (lun., 14 déc. 2009) | 5 lines Issue #4757: `zlib.compress` and other methods in the zlib module now raise a TypeError when given an `str` object (rather than a `bytes`-like object). Patch by Victor Stinner and Florent Xicluna. ........
| * Merged revisions 73715 via svnmerge fromGeorg Brandl2009-08-131-10/+10
| | | | | | | | | | | | | | | | | | | | svn+ssh://svn.python.org/python/branches/py3k ........ r73715 | benjamin.peterson | 2009-07-01 01:06:06 +0200 (Mi, 01 Jul 2009) | 1 line convert old fail* assertions to assert* ........
* | Merged revisions 88511 via svnmerge fromAntoine Pitrou2011-02-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r88511 | antoine.pitrou | 2011-02-22 22:42:56 +0100 (mar., 22 févr. 2011) | 4 lines Issue #11277: finally fix Snow Leopard crash following r88460. (probably an OS-related issue with mmap) ........
* | Merged revisions 88460 via svnmerge fromAntoine Pitrou2011-02-211-0/+29
| | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r88460 | antoine.pitrou | 2011-02-21 19:03:13 +0100 (lun., 21 févr. 2011) | 4 lines Issue #10276: Fix the results of zlib.crc32() and zlib.adler32() on buffers larger than 4GB. Patch by Nadeem Vawda. ........
* | Issue #8650: zlib.compress() and zlib.decompress() raise an OverflowError ifVictor Stinner2011-01-041-1/+11
| | | | | | | | | | the input buffer length doesn't fit into an unsigned int (length bigger than 2^32-1 bytes).
* | #10273: Rename assertRegexpMatches and assertRaisesRegexp to assertRegex and ↵Ezio Melotti2010-12-011-1/+1
| | | | | | | | assertRaisesRegex.
* | Merged revisions 81098 via svnmerge fromAntoine Pitrou2010-05-111-0/+7
| | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81098 | antoine.pitrou | 2010-05-12 01:42:28 +0200 (mer., 12 mai 2010) | 5 lines Issue #8681: Make the zlib module's error messages more informative when the zlib itself doesn't give any detailed explanation. ........
* | Merged revisions 81094 via svnmerge fromAntoine Pitrou2010-05-111-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81094 | antoine.pitrou | 2010-05-12 01:32:31 +0200 (mer., 12 mai 2010) | 6 lines 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). ........
* | Merged revisions 80926 via svnmerge fromAntoine Pitrou2010-05-071-3/+60
| | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r80926 | antoine.pitrou | 2010-05-07 18:50:34 +0200 (ven., 07 mai 2010) | 5 lines Issue #8571: Fix an internal error when compressing or decompressing a chunk larger than 1GB with the zlib module's compressor and decompressor objects. ........
* | Merged revisions 79848 via svnmerge fromAntoine Pitrou2010-04-061-1/+1
| | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r79848 | antoine.pitrou | 2010-04-06 19:21:09 +0200 (mar., 06 avril 2010) | 3 lines Issue #8193: Fix test_zlib failure with zlib 1.2.4. ........
* | Merged revisions 77727 via svnmerge fromEzio Melotti2010-01-241-2/+2
| | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r77727 | ezio.melotti | 2010-01-24 18:58:36 +0200 (Sun, 24 Jan 2010) | 1 line use assert[Not]IsInstance where appropriate ........