Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-44439: BZ2File.write() / LZMAFile.write() handle buffer protocol ↵ | Ma Lin | 2021-06-22 | 1 | -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-25145) | Inada Naoki | 2021-04-04 | 1 | -7/+8 |
| | | | | | | | | | | | | | | | | | | | * test_asyncio * test_bz2 * test_math * test_cmath * test_cmd_line * test_cmd_line_script * test_compile * test_contextlib * test_profile * ctypes/test/test_find * test_multiprocessing * test_configparser * test_csv * test_dbm_dumb * test_decimal * test_difflib * os.fdopen() calls io.text_encoding() to emit EncodingWarning for right place. | ||||
* | bpo-40275: Use new test.support helper submodules in tests (GH-21219) | Hai Shi | 2020-06-30 | 1 | -2/+3 |
| | |||||
* | bpo-41043: Escape literal part of the path for glob(). (GH-20994) | Serhiy Storchaka | 2020-06-20 | 1 | -1/+1 |
| | |||||
* | bpo-40275: Adding threading_helper submodule in test.support (GH-20263) | Hai Shi | 2020-05-27 | 1 | -1/+2 |
| | |||||
* | bpo-40286: Use random.randbytes() in tests (GH-19575) | Victor Stinner | 2020-04-17 | 1 | -1/+1 |
| | |||||
* | bpo-39357: Remove buffering parameter of bz2.BZ2File (GH-18028) | Victor Stinner | 2020-01-16 | 1 | -0/+3 |
| | | | | | | | Remove the buffering parameter of bz2.BZ2File. Since Python 3.0, it was ignored and using it was emitting a DeprecationWarning. Pass an open file object to control how the file is opened. The compresslevel parameter becomes keyword-only. | ||||
* | bpo-37707: Exclude expensive unit tests from PGO task (GH-15009) | Neil Schemenauer | 2019-07-30 | 1 | -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-42349: Switch to test.support.unlink per review by Serhiy Storchaka ↵ | Tim Golden | 2018-07-28 | 1 | -4/+1 |
| | | | | | (GH-8529) Serhiy Storchaka pointed out that using test.support.unlink was preferable | ||||
* | bpo-34239: Convert test_bz2 to use tempfile (#8485) | Tim Golden | 2018-07-26 | 1 | -2/+6 |
| | | | | | | | | | * bpo-34239: Convert test_bz2 to use tempfile test_bz2 currently uses the test.support.TESTFN functionality which creates a temporary file local to the test directory named around the pid. This can give rise to race conditions where tests are competing with each other to delete and recreate the file. This change converts the tests to use tempfile.mkstemp which gives a different file every time from the system's temp area | ||||
* | bpo-31787: Prevent refleaks when calling __init__() more than once (GH-3995) | Oren Milman | 2018-02-13 | 1 | -0/+11 |
| | |||||
* | Replace KB unit with KiB (#4293) | Victor Stinner | 2017-11-08 | 1 | -1/+1 |
| | | | | | | | | | | | kB (*kilo* byte) unit means 1000 bytes, whereas KiB ("kibibyte") means 1024 bytes. KB was misused: replace kB or KB with KiB when appropriate. Same change for MB and GB which become MiB and GiB. Change the output of Tools/iobench/iobench.py. Round also the size of the documentation from 5.5 MB to 5 MiB. | ||||
* | bpo-31370: Remove support for threads-less builds (#3385) | Antoine Pitrou | 2017-09-07 | 1 | -12/+1 |
| | | | | | | * Remove Setup.config * Always define WITH_THREAD for compatibility. | ||||
* | Remove unused imports. | Serhiy Storchaka | 2016-12-16 | 1 | -1/+0 |
| | |||||
* | Issue #28664: test_bz2 now works on non-Windows platforms without bunzip2 | Serhiy Storchaka | 2016-11-11 | 1 | -33/+26 |
|\ | | | | | | | (e.g. on Android). | ||||
| * | Issue #28664: test_bz2 now works on non-Windows platforms without bunzip2 | Serhiy Storchaka | 2016-11-11 | 1 | -33/+26 |
| | | | | | | | | (e.g. on Android). | ||||
* | | Issue #28225: bz2 module now supports pathlib | Berker Peksag | 2016-10-02 | 1 | -0/+8 |
| | | | | | | | | Initial patch by Ethan Furman. | ||||
* | | Issue #28275: Merge bz2 fix from 3.5 into 3.6 | Martin Panter | 2016-10-01 | 1 | -0/+6 |
|\ \ | |/ | |||||
| * | Issue #28275: Clean up to avoid use-after-free after bzip decompress failure | Martin Panter | 2016-10-01 | 1 | -0/+6 |
| | | |||||
* | | Use sequence repetition instead of bytes constructor with integer argument. | Serhiy Storchaka | 2016-09-11 | 1 | -2/+2 |
|/ | |||||
* | Issue #23529: Limit the size of decompressed data when reading from | Antoine Pitrou | 2015-04-10 | 1 | -9/+21 |
| | | | | | | | | 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 #23799: Added test.support.start_threads() for running and cleaning up | Serhiy Storchaka | 2015-04-01 | 1 | -4/+2 |
|\ | | | | | | | multiple threads. | ||||
| * | Issue #23799: Added test.support.start_threads() for running and cleaning up | Serhiy Storchaka | 2015-04-01 | 1 | -4/+2 |
| | | | | | | | | multiple threads. | ||||
* | | Issue #15955: Add an option to limit the output size in bz2.decompress(). | Antoine Pitrou | 2015-02-26 | 1 | -0/+103 |
|/ | | | | Patch by Nikolaus Rath. | ||||
* | Use os.devnull instead of hardcoded '/dev/null'. | Serhiy Storchaka | 2015-02-15 | 1 | -5/+5 |
| | |||||
* | Issue #22777: Test pickling with all protocols. | Serhiy Storchaka | 2014-12-15 | 1 | -4/+6 |
| | |||||
* | Issue #19936: Added executable bits or shebang lines to Python scripts which | Serhiy Storchaka | 2014-01-16 | 1 | -1/+0 |
|\ | | | | | | | | | | | | | requires them. Disable executable bits and shebang lines in test and benchmark files in order to prevent using a random system python, and in source files of modules which don't provide command line interface. Fixed shebang lines in the unittestgui and checkpip scripts. | ||||
| * | Issue #19936: Added executable bits or shebang lines to Python scripts which | Serhiy Storchaka | 2014-01-16 | 1 | -1/+0 |
| | | | | | | | | | | | | | | requires them. Disable executable bits and shebang lines in test and benchmark files in order to prevent using a random system python, and in source files of modules which don't provide command line interface. Fixed shebang line to use python3 executable in the unittestgui script. | ||||
* | | Issue #19886: Use better estimated memory requirements for bigmem tests. | Serhiy Storchaka | 2014-01-10 | 1 | -1/+1 |
|\ \ | |/ | | | | | Incorrect requirements can cause memory swapping. | ||||
| * | Issue #19886: Use better estimated memory requirements for bigmem tests. | Serhiy Storchaka | 2014-01-10 | 1 | -1/+1 |
| | | | | | | | | Incorrect requirements can cause memory swapping. | ||||
* | | Closes #19839: Fix regression in bz2 module's handling of non-bzip2 data at EOF. | Nadeem Vawda | 2013-12-04 | 1 | -1/+29 |
|\ \ | |/ | | | | | Also fix an analogous bug (not a regression) in the lzma module. | ||||
| * | #19839: Fix regression in bz2 module's handling of non-bzip2 data at EOF. | Nadeem Vawda | 2013-12-04 | 1 | -1/+29 |
| | | |||||
* | | #19395: Raise exception when pickling a (BZ2|LZMA)(Compressor|Decompressor). | Nadeem Vawda | 2013-10-28 | 1 | -0/+10 |
|\ \ | |/ | | | | | | | | | | | 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 Vawda | 2013-10-28 | 1 | -0/+10 |
| | | | | | | | | | | | | | | 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 Brandl | 2013-05-12 | 1 | -14/+0 |
| | | |||||
* | | Issue #19223: Add support for the 'x' mode to the bz2 module. | Nadeem Vawda | 2013-10-18 | 1 | -36/+57 |
| | | | | | | | | Patch by Tim Heaney and Vajrasky Kok. | ||||
* | | Issue #1159051: GzipFile now raises EOFError when reading a corrupted file | Serhiy Storchaka | 2013-01-22 | 1 | -0/+13 |
|\ \ | |/ | | | | | | | with truncated header or footer. Added tests for reading truncated gzip, bzip2, and lzma files. | ||||
| * | Issue #1159051: GzipFile now raises EOFError when reading a corrupted file | Serhiy Storchaka | 2013-01-22 | 1 | -0/+14 |
| |\ | | | | | | | | | | | | | with truncated header or footer. Added tests for reading truncated gzip, bzip2, and lzma files. | ||||
| | * | Issue #1159051: GzipFile now raises EOFError when reading a corrupted file | Serhiy Storchaka | 2013-01-22 | 1 | -0/+18 |
| | | | | | | | | | | | | | | | with truncated header or footer. Added tests for reading truncated gzip and bzip2 files. | ||||
* | | | Issue #16828: Fix error incorrectly raised by bz2.compress(b'') and ↵ | Nadeem Vawda | 2013-01-02 | 1 | -0/+15 |
|\ \ \ | |/ / | | | | | | | | | | | | | bz2.BZ2Compressor.compress(b''). Initial patch by Martin Packman. | ||||
| * | | Issue #16828: Fix error incorrectly raised by bz2.compress(''). | Nadeem Vawda | 2013-01-02 | 1 | -0/+15 |
| |\ \ | | |/ | | | | | | | Initial patch by Martin Packman. | ||||
| | * | Issue #16828: Fix error incorrectly raised by bz2.compress(''). | Nadeem Vawda | 2013-01-02 | 1 | -0/+15 |
| | | | | | | | | | | | | Patch by Martin Packman. | ||||
* | | | Replace IOError with OSError (#16715) | Andrew Svetlov | 2012-12-25 | 1 | -3/+3 |
| | | | |||||
* | | | Merge: Add test for BZ2Decompressor.decompress("") after end of stream. | Nadeem Vawda | 2012-10-28 | 1 | -0/+1 |
|\ \ \ | |/ / | |||||
| * | | Merge: Add test for BZ2Decompressor.decompress("") after end of stream. | Nadeem Vawda | 2012-10-28 | 1 | -0/+1 |
| |\ \ | | |/ | |||||
| | * | Add test for BZ2Decompressor.decompress("") after end of stream. | Nadeem Vawda | 2012-10-28 | 1 | -0/+1 |
| | | | |||||
| | * | Issue #14398: Fix size truncation and overflow bugs in bz2 module. | Nadeem Vawda | 2012-10-21 | 1 | -1/+39 |
| | | | |||||
* | | | Stylistic tweaks to the bz2 module to make it easier to transplant changes from | Nadeem Vawda | 2012-10-08 | 1 | -69/+67 |
| | | | | | | | | | | | | it to http://pypi.python.org/pypi/bz2file. | ||||
* | | | Closes #16135: Removal of OS/2 support | Jesus Cea | 2012-10-05 | 1 | -1/+1 |
|/ / | |||||
* | | Fix GzipFile's handling of filenames given as bytes objects. | Nadeem Vawda | 2012-06-19 | 1 | -0/+15 |
|\ \ | |/ | | | | | Add relevant tests for GzipFile, and also for BZ2File and LZMAFile. |