Commit 9ff0c3f
Simulate RecursionError in JSON soft-fail test
Triggering a real RecursionError via 10000-deep nested arrays depends on
sys.getrecursionlimit(), which is environment-dependent. On CI with a higher
limit, json.loads succeeded and json.dumps(indent=2) produced a multi-megabyte
string — the assertion diff then flooded the step log and hit the output cap.
Monkeypatch json.loads instead so the soft-fail branch is exercised
deterministically with a tiny input.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent ca4ade6 commit 9ff0c3f
1 file changed
Lines changed: 14 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
327 | 327 | | |
328 | 328 | | |
329 | 329 | | |
330 | | - | |
| 330 | + | |
331 | 331 | | |
332 | | - | |
333 | | - | |
334 | | - | |
335 | | - | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
336 | 338 | | |
337 | | - | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
338 | 345 | | |
339 | | - | |
340 | | - | |
341 | 346 | | |
342 | | - | |
| 347 | + | |
343 | 348 | | |
344 | 349 | | |
345 | 350 | | |
| |||
0 commit comments