diff --git a/Lib/test/test_xml_etree.py b/Lib/test/test_xml_etree.py index 2f66c6b80d1436..1bd0fde844a6fe 100644 --- a/Lib/test/test_xml_etree.py +++ b/Lib/test/test_xml_etree.py @@ -3105,7 +3105,7 @@ def test_deeply_nested_deepcopy(self): # 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):