mirror of
https://github.com/python/cpython.git
synced 2026-05-06 04:37:33 -04:00
gh-149285: Increase recursion depth for test_xml_etree from 150k to 500k (#149286)
This commit is contained in:
@@ -3197,7 +3197,7 @@ class BadElementTest(ElementTestCase, unittest.TestCase):
|
||||
# This should raise a RecursionError and not crash.
|
||||
# See https://github.com/python/cpython/issues/148801.
|
||||
root = cur = ET.Element('s')
|
||||
for _ in range(150_000):
|
||||
for _ in range(500_000):
|
||||
cur = ET.SubElement(cur, 'u')
|
||||
with support.infinite_recursion():
|
||||
with self.assertRaises(RecursionError):
|
||||
|
||||
Reference in New Issue
Block a user