Skip to content

Commit 644f94c

Browse files
[3.14] gh-149285: Increase recursion depth for test_xml_etree from 150k to 500k (GH-149286) (#149287)
(cherry picked from commit b1d6231) Co-authored-by: Zanie Blue <contact@zanie.dev>
1 parent a6d7bf5 commit 644f94c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/test/test_xml_etree.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3105,7 +3105,7 @@ def test_deeply_nested_deepcopy(self):
31053105
# This should raise a RecursionError and not crash.
31063106
# See https://github.com/python/cpython/issues/148801.
31073107
root = cur = ET.Element('s')
3108-
for _ in range(150_000):
3108+
for _ in range(500_000):
31093109
cur = ET.SubElement(cur, 'u')
31103110
with support.infinite_recursion():
31113111
with self.assertRaises(RecursionError):

0 commit comments

Comments
 (0)