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):