]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] gh-111811: Fix test_recursive_repr for WASI (GH-112130) (#112131)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 16 Nov 2023 17:11:33 +0000 (18:11 +0100)
committerGitHub <noreply@github.com>
Thu, 16 Nov 2023 17:11:33 +0000 (18:11 +0100)
gh-111811: Fix test_recursive_repr for WASI (GH-112130)
(cherry picked from commit 7218bac8c84115a8e9a18a4a8f3146235068facb)

Co-authored-by: Kushal Das <mail@kushaldas.in>
Lib/test/test_xml_etree.py

index 3cde6ef5fa7c62d08a1df386d3324e52bb9ad885..53a4e9f821d6dd119a3466e20ce494b93e332b07 100644 (file)
@@ -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')