Update test_unicodedata from v3.14.2 and implement more - #7114
Conversation
π WalkthroughWalkthroughExpands the Unicode Data API with six new character property methods (combining class, decomposition, normalization, digit/decimal/numeric values), transitions error handling from LookupError to KeyError, and introduces a decomposition type mapping helper. Includes minor formatting adjustments to the time module. Changes
Estimated code review effortπ― 3 (Moderate) | β±οΈ ~20 minutes Possibly related PRs
Poem
π₯ Pre-merge checks | β 3 | β 1β Failed checks (1 warning)
β Passed checks (3 passed)
βοΈ Tip: You can configure your own custom pre-merge checks in the settings. β¨ Finishing touches
π§ͺ Generate unit tests (beta)
βοΈ Resolve merge conflicts (beta)
No actionable comments were generated in the recent review. π π§Ή Recent nitpick comments
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Code has been automatically formatted The code in this PR has been formatted using:
git pull origin unicode |
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.
π¦ Library DependenciesThe following Lib/ modules were modified. Here are their dependencies: [x] lib: cpython/Lib/re dependencies:
dependent tests: (59 tests)
[ ] test: cpython/Lib/test/test_unicodedata.py (TODO: 9) dependencies: dependent tests: (no tests depend on unicode) [x] lib: cpython/Lib/urllib dependencies:
dependent tests: (27 tests)
Legend:
|
Update test_unicodedata from v3.14.2 and implement more
Summary by CodeRabbit
New Features
Bug Fixes