From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Thu, 16 Nov 2023 17:10:02 +0000 (+0100) Subject: [3.11] gh-111811: Fix test_recursive_repr for WASI (GH-112130) (#112132) X-Git-Tag: v3.11.7~61 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=533da5ed67249305e26e97aa0b8d32f8045cde26;p=thirdparty%2FPython%2Fcpython.git [3.11] gh-111811: Fix test_recursive_repr for WASI (GH-112130) (#112132) 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 c095dd0b5930..57f5de34fdc1 100644 --- a/Lib/test/test_xml_etree.py +++ b/Lib/test/test_xml_etree.py @@ -2564,6 +2564,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')