Skip to content

test: give the deep JSON tests' reference checks room on Python 3.11 - #438

Merged
JuroOravec merged 1 commit into
mainfrom
fix/deep-json-py311
Oct 27, 2026
Merged

JuroOravec merged 1 commit into
mainfrom
fix/deep-json-py311

Conversation

@JuroOravec

Copy link
Copy Markdown
Member

Six tests in test_deep_json_data.py failed 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 of json and == 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

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]>
@JuroOravec
JuroOravec merged commit c4c4157 into main Oct 27, 2026
20 of 29 checks passed
@JuroOravec
JuroOravec deleted the fix/deep-json-py311 branch October 27, 2026 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant