]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-111799: Fix `testRecursiveRepr` from `test_fileio` on WASI (GH-112181)
authorNikita Sobolev <mail@sobolevn.me>
Thu, 16 Nov 2023 23:12:27 +0000 (02:12 +0300)
committerGitHub <noreply@github.com>
Thu, 16 Nov 2023 23:12:27 +0000 (15:12 -0800)
Lib/test/test_fileio.py

index ebfcffd182917468b1574d752e3babe6d1608d97..f490485cdaf3ebd0c468f70042700351b30cf908 100644 (file)
@@ -10,7 +10,8 @@ from weakref import proxy
 from functools import wraps
 
 from test.support import (
-    cpython_only, swap_attr, gc_collect, is_emscripten, is_wasi
+    cpython_only, swap_attr, gc_collect, is_emscripten, is_wasi,
+    infinite_recursion,
 )
 from test.support.os_helper import (
     TESTFN, TESTFN_ASCII, TESTFN_UNICODE, make_bad_fd,
@@ -183,6 +184,7 @@ class AutoFileTests:
         finally:
             os.close(fd)
 
+    @infinite_recursion(25)
     def testRecursiveRepr(self):
         # Issue #25455
         with swap_attr(self.f, 'name', self.f):