connections test: nest deeper than any Python's JSON recursion limit (3.13 parses 1100 levels)
This commit is contained in:
1 parent
341228c718
commit
c24c426c06
1 file changed
+2
-1
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user