From f92ea63f6f2c37917fc095a1bc036a8b0c45a084 Mon Sep 17 00:00:00 2001 From: Nikita Sobolev Date: Fri, 17 Nov 2023 02:12:27 +0300 Subject: [PATCH] gh-111799: Fix `testRecursiveRepr` from `test_fileio` on WASI (GH-112181) --- Lib/test/test_fileio.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Lib/test/test_fileio.py b/Lib/test/test_fileio.py index ebfcffd1829174..f490485cdaf3eb 100644 --- a/Lib/test/test_fileio.py +++ b/Lib/test/test_fileio.py @@ -10,7 +10,8 @@ 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 @@ def testReprNoCloseFD(self): finally: os.close(fd) + @infinite_recursion(25) def testRecursiveRepr(self): # Issue #25455 with swap_attr(self.f, 'name', self.f):