From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Thu, 16 Nov 2023 17:11:33 +0000 (+0100) Subject: [3.12] gh-111811: Fix test_recursive_repr for WASI (GH-112130) (#112131) X-Git-Tag: v3.12.1~118 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3f2cdbe6668ae40e72a8a8f1530c860a776d0c62;p=thirdparty%2FPython%2Fcpython.git [3.12] gh-111811: Fix test_recursive_repr for WASI (GH-112130) (#112131) gh-111811: Fix test_recursive_repr for WASI (GH-112130) (cherry picked from commit 7218bac8c84115a8e9a18a4a8f3146235068facb) Co-authored-by: Kushal Das --- diff --git a/Lib/test/test_xml_etree.py b/Lib/test/test_xml_etree.py index 3cde6ef5fa7c..53a4e9f821d6 100644 --- a/Lib/test/test_xml_etree.py +++ b/Lib/test/test_xml_etree.py @@ -2535,6 +2535,7 @@ class BadElementTest(ElementTestCase, unittest.TestCase): e.extend([ET.Element('bar')]) self.assertRaises(ValueError, e.remove, X('baz')) + @support.infinite_recursion(25) def test_recursive_repr(self): # Issue #25455 e = ET.Element('foo')