We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3837af commit 2d3bdd0Copy full SHA for 2d3bdd0
Lib/test/test_pyexpat.py
@@ -705,9 +705,11 @@ def test_trigger_leak(self):
705
@support.skip_emscripten_stack_overflow()
706
@support.skip_wasi_stack_overflow()
707
def test_deeply_nested_content_model(self):
708
+ # This should raise a RecursionError and not crash.
709
+ # See https://github.com/python/cpython/issues/
710
+ N = 500_000
711
data = (b'<!DOCTYPE root [\n<!ELEMENT root '
- + b'(a, ' * 500000 + b'a'
- + b')' * 500000
712
+ + b'(a, ' * N + b'a' + b')' * N
713
+ b'>\n]>\n<root/>\n')
714
715
parser = expat.ParserCreate()
0 commit comments