Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
gh-149285: Increase recursion depth for test_xml_etree from 150k to…
… 500k (GH-149286)

(cherry picked from commit b1d6231)

Co-authored-by: Zanie Blue <contact@zanie.dev>
  • Loading branch information
zanieb authored and miss-islington committed May 2, 2026
commit 6c60714f61c053628631a292a6c5ca3ded188acc
2 changes: 1 addition & 1 deletion Lib/test/test_xml_etree.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
Loading