21 Commits
Author SHA1 Message Date
youknowdotandCodex 167a999fcb Support Python 3.15 zlib checksum combination and version deprecation (#9414)
* Support Python 3.15 zlib checksum combination and version deprecation

Forward checksum combination to the existing zlib-rs backend, retaining CPython checksum masking, conversion warnings, and signed length bounds. Deprecate __version__ through module __getattr__. Sync the canonical test_zlib with scripts/update_lib.

Implementation and source review assisted by OpenAI Codex; focused compilation and Clippy passed. Canonical runtime tests remain pending.

Assisted-by: OpenAI Codex: model version unavailable

* Fix zlib combine ABI conversions for cross-platform Clippy

Mark checksum results must-use and make the C unsigned-long and length conversions explicit per ABI. Preserve Windows GNU's 32-bit z_off64_t and large-file length handling without lint suppression.

OpenAI Codex assisted with implementation and source review. Standalone common-crate Clippy passed; Windows validation remains with CI.

Assisted-by: OpenAI Codex: model version unavailable

---------

Co-authored-by: Codex <codex@openai.com>
2026-10-28 17:33:04 +09:00
Jeong, YunWon c716a7d070 common: share the zlib stream engine (#8631)
* common: share the zlib stream engine

Move the VM-independent zlib-rs stream owner and state machine into a feature-gated rustpython-common module. Make rustpython-stdlib adapt that engine instead of carrying its own flate2 implementation, including native stream copy/deepcopy, Z_BLOCK flushes, and wbits=0 decompression.

Assisted-by: Codex:GPT-5

* common: share the lzma stream engine

Move the VM-independent liblzma stream owner, filter properties, and compression state into a target-gated rustpython-common module. Keep rustpython-stdlib as the Python object and exception adapter, and remove its direct xz dependencies and lzma-only generic compressor machinery.

Assisted-by: Codex:GPT-5

* common: address compression engine reviews
2026-09-01 15:29:56 +09:00
Lee Dogeon 9b5eefbb7b Replace _compression with compression and update related too (#6788) 2026-01-19 00:38:51 +09:00
Jeong, YunWon 02cc257b42 Support pickle better with __getnewargs_ex__ (#6749)
* Implement pickle more

* add weakref check

* check exports in __setstate__

* remove reducelib
2026-01-17 18:37:16 +09:00
Noa 8c5602f2fb Fix a bunch of zlib tests 2025-02-26 00:10:24 -06:00
Ashwin Naren 2d83a67bd6 Update zlib from 3.12.6 and _ZlibDecompressor implementation (#5476)
* add is_s390x and skip_on_s390x to test support

* update zlib tests to 3.12

* _ZlibDecompressor implementation
2025-01-16 13:28:09 +09:00
CPython Developers 5be22a073b Update test/test_zlib.py from CPython 3.11.2 2023-03-07 04:34:58 +09:00
CPython Developers ead12b5611 Update test_zlib from CPython 3.10.6 2022-08-14 23:50:53 +09:00
gilteunchoi 600e924c53 unmark expectedFauilure decorator
Signed-off-by: gilteunchoi <gilteunchoi@gmail.com>
2022-03-13 18:04:24 +09:00
Dean Li 6f98288e84 test: use import_helper 2021-11-29 21:03:02 +08:00
Robert Booth af6b230dad Change int type checking, amend tests
- add a special_retrieve fudge function to the PyValue trait
- define the special_retrieve function for PyInt
- remove blocks on successful tests to reflect effect of changes
2021-04-25 01:18:57 +09:00
Robert Booth ae815839e8 Change Rust zlib compression code for zlib tests
- decompress method: Amend error message
- Pass data chunks on a per-slice basis to compression API
2021-04-21 23:21:57 +09:00
Padraic Fanning 0b14772717 Explain test_big_compress_buffer skip 2021-02-08 21:30:54 -05:00
Padraic Fanning fe25a749b7 Unskip test_compressincremental 2021-02-08 21:29:45 -05:00
Padraic Fanning 982f87064e Unskip test_baddecompressobj 2021-02-08 21:29:04 -05:00
Padraic Fanning 33e8e0670d Unskip test_badcompressobj 2021-02-08 21:28:32 -05:00
Noah f428fcc692 unskip tests 2021-01-25 18:28:18 -06:00
Jeong YunWon f2fa5b849b mark test_zlib compressobj pickling tests as expected failures 2020-08-20 03:23:13 +09:00
Ben Lewis 43434d8559 Fix zlib decompress 2020-08-02 19:49:57 +12:00
Jeong YunWon 915078e32f mark failing tests 2020-07-18 20:58:59 +09:00
CPython dev d71223b546 test_zlib from CPython 3.8.3 2020-07-18 20:51:12 +09:00