Commit Graph
8 Commits
Author SHA1 Message Date
Jeong, YunWon 3fe3f37dac unicodedata: resolve name aliases and named sequences (#8676)
* unicodedata: resolve name aliases and named sequences

Vendor Unicode 17 NameAliases.txt and NamedSequences.txt into
rustpython-unicode so unicodedata.lookup matches CPython: formal
aliases and named sequences on the modern view, none on ucd_3_2_0.
Tangut derived-name lookup is case-insensitive. \N{} still rejects
named sequences because they are not a single character.

Assisted-by: Claude

* test_ucn: drop expectedFailure on test_aliases

The name-alias tables make the test pass; leaving the marker
fails CI as an unexpected success.

Assisted-by: Claude

* unicode: reject whitespace in Tangut derived names

parse_hex_code does not skip spaces around the hex digits.

Assisted-by: Claude
2026-09-09 11:47:16 +09:00
Shahar Naveh 620faab734 Update some tests to 3.14.5 (#7990)
* Update `test_embed.py` to 3.14.5

* Update `test_cmd_line*` to 3.14.5

* Update unicode related tests

* Update `test_script_helper.py`

* Update `test_gc.py`
2026-05-30 20:16:10 +09:00
Jeong, YunWon 8d098ef4d1 Implement missing unicodedata functions and fix lookup error type
Add combining, decomposition, digit, decimal, numeric methods to Ucd.
Change lookup() to raise KeyError instead of LookupError.
Remove expectedFailure markers from 9 passing tests.
Add unicodedata.is_normalized() method.
Rename decomp_chars to chars to fix spell check.
Remove expectedFailure from test_named_unicode_escapes and
test_urlsplit_normalization.
2026-02-14 09:32:17 +09:00
ShaharNaveh d28164c150 Update test_ucn.py from 3.13.7 2025-08-24 00:17:50 +03:00
Noa a86126419c Fix remaining tests 2025-03-25 19:05:12 -05:00
Jeong YunWon 6e2411ea57 Update unicode_names to 0.5.1 to fix crash 2022-08-19 15:24:56 +09:00
Jeong YunWon c45db9391e mark failing tests from test_ucn 2022-08-09 04:44:43 +09:00
CPython Developers 33f38c7812 Add test_ucn from CPython 3.10.5 2022-08-09 04:42:57 +09:00