Update test_unicodedata from v3.14.2 and implement more#7114
Update test_unicodedata from v3.14.2 and implement more#7114youknowone merged 3 commits intoRustPython:mainfrom
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:
|
Summary by CodeRabbit
New Features
Bug Fixes