]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] gh-149285: Increase recursion depth for `test_xml_etree` from 150k to 500k...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 2 May 2026 16:29:49 +0000 (18:29 +0200)
committerGitHub <noreply@github.com>
Sat, 2 May 2026 16:29:49 +0000 (16:29 +0000)
(cherry picked from commit b1d62317362055da7e2248a76a00c0f46cacac7a)

Co-authored-by: Zanie Blue <contact@zanie.dev>
Lib/test/test_xml_etree.py

index 2f66c6b80d1436dedb780e08e6b9f97db3612d68..1bd0fde844a6fe0d2aa75110d70f8a44ed98e32c 100644 (file)
@@ -3105,7 +3105,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):