Repository navigation
test: give the deep JSON tests' reference checks room on Python 3.11 - #438
Merged
Merged
Conversation
Python 3.11 counts the C-level calls of json and of == against the recursion limit, so the standard-library results these tests compare against stopped at 2,000 levels. Citry's own bounded-frame code passed; only the reference computations needed the room. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
Six tests in
test_deep_json_data.pyfailed on Python 3.11 only, on Ubuntu, macOS and Windows (main run 40502014569). Every traceback ends in the tests' own reference computations (json.dumps,json.loads, and==on 2,000-level data), not in Citry. Python 3.11 counts the C-level calls ofjsonand==against the recursion limit, while 3.12 and later count them separately. The Citry calls under test already passed on 3.11 with their bounded number of frames, so Citry's code is unchanged. The fix raises the recursion limit only around those reference computations and comparisons. The file passes locally on 3.14 (96 passed). Python 3.11 was not run locally, so this PR's CI run is the 3.11 proof.🤖 Generated with Claude Code