From: Zanie Blue Date: Sat, 2 May 2026 16:04:36 +0000 (-0500) Subject: gh-149285: Increase recursion depth for `test_xml_etree` from 150k to 500k (#149286) X-Git-Tag: v3.15.0b1~113 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b1d62317362055da7e2248a76a00c0f46cacac7a;p=thirdparty%2FPython%2Fcpython.git gh-149285: Increase recursion depth for `test_xml_etree` from 150k to 500k (#149286) --- diff --git a/Lib/test/test_xml_etree.py b/Lib/test/test_xml_etree.py index 43864820688b..8f3efe9fc907 100644 --- a/Lib/test/test_xml_etree.py +++ b/Lib/test/test_xml_etree.py @@ -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):