Commit Graph
14 Commits
Author SHA1 Message Date
Shahar Naveh 0a70069404 Update some tests to 3.14.7 (#8558)
* Update some tests to 3.14.7

* remove patch

* restored `test_monitoring.py`
2026-08-22 20:52:01 +09:00
Hanif AriffinandJeong YunWon 8e920098b2 Fix bytes.isspace (#5655)
* Fix implementation of bytes.isspace to match the implementation in CPython.

* Fix implementation of bytes.istitle so that test_bigmem now passes.
Also added some extra_test to capture this.

* Fix some clippy issues

Signed-off-by: Hanif Ariffin <hanif.ariffin.4326@gmail.com>

* bytes.istitle returns false when the bytes is empty.

* Fix some edges of istitle with non-alphanumeric characters

* Disable a line because python 3.12 errors on bad escape sequence

* Match CPython's istitle a little closer

* Fix clippy warning

* Rewrite bytes.istitle along _Py_bytes_istitle

The lookahead-based check accepted b"Not--a Titlecase String", which
test_bytes covers. Track whether the previous byte was cased instead.

isspace compares bytes directly rather than converting to char.

Restore the b"omkmok\Xaa" assert: 3.14 reports an invalid escape
sequence as a SyntaxWarning, not an error.

Assisted-by: Claude

---------

Signed-off-by: Hanif Ariffin <hanif.ariffin.4326@gmail.com>
Co-authored-by: Jeong YunWon <jeong@youknowone.org>
2026-08-03 17:52:42 +09:00
Shahar Naveh b28f29313f Update some tests to 3.14.6 (#8167)
* Add `test_fileutils.py` from 3.14.6

* Align patch for `test_zipimport_support.py`

* Update `test_bigmem.py` to 3.14.6

* Update `test_exception_group.py`

* Align patches for `test_baseexception.py`

* Update `test_exceptions.py`

* Update `test_dtrace.py`

* Remove patch from `string_tests.py`
2026-06-25 22:33:51 +09:00
Jeong, YunWon 0dac28ff50 Implement UTF-32 encode/decode and fix UTF-16 empty encode
- Add UTF-32, UTF-32-LE, UTF-32-BE encode/decode in _pycodecs.py
- Register utf_32 codec functions in codecs.rs via delegate_pycodecs
- Fix PyUnicode_EncodeUTF16 returning "" instead of [] for empty input
- Remove resolved expectedFailure decorators in test_codecs.py
- Add failure reasons to remaining expectedFailure comments
2026-02-02 12:50:34 +09:00
Noa 7d05f881c4 Have rustpython_literal::escape support wtf8 2025-03-28 11:26:29 +09:00
NakanoMiku 5303b33c8b Update Lib/test/test_bigmem.py from CPython v3.12.0 2023-11-23 15:42:40 +08:00
Jeong YunWon 65224213d0 test_bigmem fix expectedFailures not to always fall 2023-03-05 04:00:42 +09:00
Jeong YunWon 992f5aaed7 test_bigmem: removed outdated expected failures 2023-03-05 03:59:33 +09:00
CPython Developers 5d482abb67 Update test_bigmem from cpython 3.11.2 2023-03-05 03:13:37 +09:00
Jeong YunWon 6ee827bd8a Fix CR/LF of python libraries 2023-02-28 17:11:41 +09:00
Jeong YunWon 317802a26e optimize str.(l|r)strip 2023-02-13 21:51:35 +09:00
Padraic Fanning a1f0004586 Clean up skips in test_bigmem 2021-10-10 19:11:23 -04:00
snowapril fcf55002da add annotations for test success
Signed-off-by: snowapril <sinjihng@gmail.com>
2021-09-06 18:55:23 +09:00
snowapril c865f24d4a add test_bigmem.py from cpython 3.8
Signed-off-by: snowapril <sinjihng@gmail.com>
2021-09-06 18:55:23 +09:00