https://github.com/python/cpython/commit/b1d62317362055da7e2248a76a00c0f46cacac7a
commit: b1d62317362055da7e2248a76a00c0f46cacac7a
branch: main
author: Zanie Blue <[email protected]>
committer: JelleZijlstra <[email protected]>
date: 2026-05-02T09:04:36-07:00
summary:

gh-149285: Increase recursion depth for `test_xml_etree` from 150k to 500k 
(#149286)

files:
M Lib/test/test_xml_etree.py

diff --git a/Lib/test/test_xml_etree.py b/Lib/test/test_xml_etree.py
index 43864820688bd4..8f3efe9fc90794 100644
--- a/Lib/test/test_xml_etree.py
+++ b/Lib/test/test_xml_etree.py
@@ -3197,7 +3197,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):

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to