]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-149285: Increase recursion depth for `test_xml_etree` from 150k to 500k (#149286)
authorZanie Blue <contact@zanie.dev>
Sat, 2 May 2026 16:04:36 +0000 (11:04 -0500)
committerGitHub <noreply@github.com>
Sat, 2 May 2026 16:04:36 +0000 (09:04 -0700)
Lib/test/test_xml_etree.py

index 43864820688bd455b48c4d08985bc8a86b1865f9..8f3efe9fc90794b9c13a1a5c9560533d65f81eb6 100644 (file)
@@ -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):