summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_zlib.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #26243: Only the level argument to zlib.compress() is keyword argumentSerhiy Storchaka2016-06-251-1/+3
| | | | now. The first argument is positional-only.
* Issue #27164: Merge raw Deflate zdict support from 3.5Martin Panter2016-06-051-0/+9
|\
| * Issue #27164: Allow decompressing raw Deflate streams with predefined zdictMartin Panter2016-06-051-0/+9
| | | | | | | | Based on patch by Xiang Zhang.
* | Issue #5784: Merge zlib from 3.5Martin Panter2016-05-271-2/+11
|\ \ | |/
| * Issue #5784: wbits=0 apparently added in zlib v1.2.3.5Martin Panter2016-05-271-2/+11
| |
* | Issue #5784: Merge zlib from 3.5Martin Panter2016-05-271-0/+43
|\ \ | |/
| * Issue #5784: Expand documentation and tests for zlib wbits parameterMartin Panter2016-05-271-0/+43
| | | | | | | | Based on documentation by AM Kuchling.
* | Issue #15984: Merge PyUnicode doc from 3.5Martin Panter2016-04-151-1/+1
|\ \ | |/
| * Correct “an” → “a” with “Unicode”, “user”, “UTF”, etcMartin Panter2016-04-151-1/+1
| | | | | | | | This affects documentation, code comments, and a debugging messages.
* | Issue #26243: zlib.compress() keyword argument support by Aviv PalivodaMartin Panter2016-02-101-0/+4
|/
* Issue #22341: Drop Python 2 workaround and document CRC initial valueMartin Panter2015-12-111-9/+4
| | | | Also align the parameter naming in binascii to be consistent with zlib.
* Issue #25626: Change zlib to accept Py_ssize_t and cap to UINT_MAXMartin Panter2015-11-201-1/+55
| | | | | | | | | | | | | | The underlying zlib library stores sizes in “unsigned int”. The corresponding Python parameters are all sizes of buffers filled in by zlib, so it is okay to reduce higher values to the UINT_MAX internal cap. OverflowError is still raised for sizes that do not fit in Py_ssize_t. Sizes are now limited to Py_ssize_t rather than unsigned long, because Python byte strings cannot be larger than Py_ssize_t. Previously this could result in a SystemError on 32-bit platforms. This resolves a regression in the gzip module when reading more than UINT_MAX or LONG_MAX bytes in one call, introduced by revision 62723172412c.
* Issue #22995: Default implementation of __reduce__ and __reduce_ex__ nowSerhiy Storchaka2015-11-121-0/+11
|\ | | | | | | | | rejects builtin types with not defined __new__. Added tests for non-pickleable types.
| * Issue #22995: Default implementation of __reduce__ and __reduce_ex__ nowSerhiy Storchaka2015-11-121-0/+11
| | | | | | | | | | rejects builtin types with not defined __new__. Added tests for non-pickleable types.
* | 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). ........ ................