Repository navigation
test: keep distinct Unicode member names separate - #130
Merged
stefankoegl merged 1 commit intoNov 19, 2026
Merged
Conversation
Signed-off-by: Mohamed Ajab <mohamedajab8@gmail.com>
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
There are no active review issues for the Unicode key-matching regression test changes.
No open issues 🎉
What changed in this PR
Adds regression tests for RFC 6901’s requirement to match Unicode member names exactly, without normalization. Library code is unchanged.
Changes:
- Verify that composed and decomposed Unicode keys remain distinct through pointer construction, serialization, and lookup.
- Check that copy-on-write updates change only the exact key and preserve the original document.
- Confirm that a visually similar missing key returns the supplied default or raises
JsonPointerException, without modifying the document.
| File | Description |
|---|---|
tests.py |
Adds two tests covering exact Unicode key matching, isolated updates, and missing-key behavior. |
Review effort: Balanced
Owner
|
Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add tests for two keys that look alike but use different Unicode characters: a single accented character and a letter followed by a combining accent.
The tests check that pointers read and update the exact key, leave the other key unchanged, and do not match a missing key through Unicode normalization. This covers the existing behaviour required by RFC 6901 section 4. No library code changed.
Validation: all 101 tests passed on Python 3.14. Flake8 and git diff --check passed. Other Python versions, distribution builds and docs builds were not tested locally.