summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_lzma.py
Commit message (Collapse)AuthorAgeFilesLines
* bpo-44439: BZ2File.write() / LZMAFile.write() handle buffer protocol ↵Ma Lin2021-06-221-0/+9
| | | | | | | correctly (GH-26764) No longer use len() to get the length of the input data. For some buffer protocol objects, the length obtained by using len() is wrong.
* bpo-43651: PEP 597: Fix EncodingWarning in some tests (GH-25190)Inada Naoki2021-04-061-6/+7
| | | | | | * Fix test_lzma * Fix test_mailbox * Fix test_mimetypes * Fix test_posix
* bpo-40275: Use new test.support helper submodules in tests (GH-21169)Hai Shi2020-06-301-1/+5
|
* bpo-40286: Use random.randbytes() in tests (GH-19575)Victor Stinner2020-04-171-1/+1
|
* bpo-21872: fix lzma library decompresses data incompletely (GH-14048)animalize2019-09-121-0/+163
| | | | | | | * 1. add test case with wrong behavior * 2. fix bug when max_length == -1 * 3. allow b"" as valid input data for decompress_buf() * 4. when max_length >= 0, let needs_input mechanism works * add more asserts to test case
* bpo-37707: Exclude expensive unit tests from PGO task (GH-15009)Neil Schemenauer2019-07-301-0/+2
| | | | | Mark some individual tests to skip when --pgo is used. The tests marked increase the PGO task time significantly and likely don't help improve optimization of the final executable.
* bpo-31787: Prevent refleaks when calling __init__() more than once (GH-3995)Oren Milman2018-02-131-0/+11
|
* Issue #27517: LZMA compressor and decompressor no longer raise exceptions ifSerhiy Storchaka2016-10-311-0/+38
|\ | | | | | | given empty data twice. Patch by Benjamin Fogle.
| * Issue #27517: LZMA compressor and decompressor no longer raise exceptions ifSerhiy Storchaka2016-10-311-0/+38
| | | | | | | | given empty data twice. Patch by Benjamin Fogle.
* | Issue #28229: lzma module now supports pathlibBerker Peksag2016-10-041-0/+22
| |
* | Issue #28275: Merge bz2 fix from 3.5 into 3.6Martin Panter2016-10-011-5/+3
|\ \ | |/
| * Issue #28275: Clean up to avoid use-after-free after bzip decompress failureMartin Panter2016-10-011-5/+3
| |
* | Issue #28275: Fixed possible use adter free in LZMADecompressor.decompress().Serhiy Storchaka2016-09-271-0/+9
|\ \ | |/ | | | | Original patch by John Leitch.
| * Issue #28275: Fixed possible use adter free in LZMADecompressor.decompress().Serhiy Storchaka2016-09-271-0/+9
| | | | | | | | Original patch by John Leitch.
* | Use sequence repetition instead of bytes constructor with integer argument.Serhiy Storchaka2016-09-111-2/+2
|/
* Issue #27076: Doc, comment and tests spelling fixesMartin Panter2016-05-261-1/+1
| | | | Most fixes to Doc/ and Lib/ directories by Ville Skyttä.
* Issue #23529: Limit the size of decompressed data when reading fromAntoine Pitrou2015-04-101-6/+19
| | | | | | | | GzipFile, BZ2File or LZMAFile. This defeats denial of service attacks using compressed bombs (i.e. compressed payloads which decompress to a huge size). Patch by Martin Panter and Nikolaus Rath.
* Issue #15955: Add an option to limit output size when decompressing LZMA data.Antoine Pitrou2015-01-171-0/+91
| | | | Patch by Nikolaus Rath and Martin Panter.
* Issue #22777: Test pickling with all protocols.Serhiy Storchaka2014-12-151-4/+5
|
* Closes #19839: Fix regression in bz2 module's handling of non-bzip2 data at EOF.Nadeem Vawda2013-12-041-0/+26
|\ | | | | | | Also fix an analogous bug (not a regression) in the lzma module.
| * #19839: Fix lzma module's handling of non-lzma data at EOF.Nadeem Vawda2013-12-041-0/+26
| |
* | #19395: Raise exception when pickling a (BZ2|LZMA)(Compressor|Decompressor).Nadeem Vawda2013-10-281-0/+9
|\ \ | |/ | | | | | | | | | | The underlying C libraries provide no mechanism for serializing compressor and decompressor objects, so actually pickling these classes is impractical. Previously, these objects would be pickled without error, but attempting to use a deserialized instance would segfault the interpreter.
| * #19395: Raise exception when pickling a (BZ2|LZMA)(Compressor|Decompressor).Nadeem Vawda2013-10-281-0/+9
| | | | | | | | | | | | | | The underlying C libraries provide no mechanism for serializing compressor and decompressor objects, so actually pickling these classes is impractical. Previously, these objects would be pickled without error, but attempting to use a deserialized instance would segfault the interpreter.
| * Back out patch for #1159051, which caused backwards compatibility problems.Georg Brandl2013-05-121-14/+0
| |
* | Issue #19201: Add support for the 'x' mode to the lzma module.Nadeem Vawda2013-10-181-3/+29
|/ | | | Patch by Tim Heaney and Vajrasky Kok.
* Fix accidental non-breakable spaces (U+00A0).Serhiy Storchaka2013-02-081-1/+1
|
* Issue #1159051: GzipFile now raises EOFError when reading a corrupted fileSerhiy Storchaka2013-01-221-0/+14
| | | | | with truncated header or footer. Added tests for reading truncated gzip, bzip2, and lzma files.
* Make lzma.{encode,decode}_filter_properties private.Nadeem Vawda2012-06-211-13/+13
| | | | | | | | These functions were originally added to support LZMA compression in the zipfile module, and are not of interest for the majority of users. They can be made public in 3.4 if there is user interest, but in the meanwhile, I've opted to present a smaller, simpler API for the module's initial release.
* Fix GzipFile's handling of filenames given as bytes objects.Nadeem Vawda2012-06-191-0/+24
| | | | Add relevant tests for GzipFile, and also for BZ2File and LZMAFile.
* Add a function lzma.open(), to match gzip.open() and bz2.open().Nadeem Vawda2012-06-041-0/+101
|
* Allow LZMAFile to accept modes with a "b" suffix.Nadeem Vawda2012-06-041-2/+17
|
* Simplify usage of LZMAFile's fileobj support, like with BZ2File.Nadeem Vawda2012-06-041-120/+110
|
* Rename lzma.check_is_supported() to is_check_supported() to avoid ↵Nadeem Vawda2012-05-061-4/+4
| | | | grammatical confusion.
* Add lzma.{encode,decode}_filter_properties().Nadeem Vawda2012-05-061-0/+43
|
* Fix seekable() in BZ2File and LZMAFile to check whether the underlying file ↵Nadeem Vawda2012-02-111-0/+9
| | | | supports seek().
* Issue #6715: Add module for compression using the LZMA algorithm.Nadeem Vawda2011-11-291-0/+1335