From c24c426c060fcea24f6328bc27abd1a2fdfc8edd Mon Sep 17 00:00:00 2001 From: Niko1221 Date: Thu, 15 Oct 2026 11:21:22 +0200 Subject: [PATCH] connections test: nest deeper than any Python's JSON recursion limit (3.13 parses 1100 levels) --- tests/terminal/test_connections.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/terminal/test_connections.py b/tests/terminal/test_connections.py index 9044a8b3..0bec26e3 100644 --- a/tests/terminal/test_connections.py +++ b/tests/terminal/test_connections.py @@ -216,7 +216,8 @@ class ConnectionTests(unittest.TestCase): thread.join(timeout=2) def test_deeply_nested_telemetry_returns_one_redacted_error(self): - body = b"[" * 1100 + b"0" + b"]" * 1100 + depth = 20000 # Python 3.13 parses 1100 levels; the recursion limit is reached at a few thousand on every version + body = b"[" * depth + b"0" + b"]" * depth class Handler(BaseHTTPRequestHandler): def do_GET(self):