From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Sat, 2 May 2026 16:29:49 +0000 (+0200) Subject: [3.14] gh-149285: Increase recursion depth for `test_xml_etree` from 150k to 500k... X-Git-Tag: v3.14.5rc1~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=644f94c1a5bb742c486134c4444722a6a3901f82;p=thirdparty%2FPython%2Fcpython.git [3.14] gh-149285: Increase recursion depth for `test_xml_etree` from 150k to 500k (GH-149286) (#149287) (cherry picked from commit b1d62317362055da7e2248a76a00c0f46cacac7a) Co-authored-by: Zanie Blue --- diff --git a/Lib/test/test_xml_etree.py b/Lib/test/test_xml_etree.py index 2f66c6b80d14..1bd0fde844a6 100644 --- a/Lib/test/test_xml_etree.py +++ b/Lib/test/test_xml_etree.py @@ -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):