Skip to content

Commit fd3ade0

Browse files
sobolevnaisk
authored andcommitted
pythongh-111799: Fix testRecursiveRepr from test_fileio on WASI (pythonGH-112181)
1 parent a7aa031 commit fd3ade0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Lib/test/test_fileio.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
from functools import wraps
1111

1212
from test.support import (
13-
cpython_only, swap_attr, gc_collect, is_emscripten, is_wasi
13+
cpython_only, swap_attr, gc_collect, is_emscripten, is_wasi,
14+
infinite_recursion,
1415
)
1516
from test.support.os_helper import (
1617
TESTFN, TESTFN_ASCII, TESTFN_UNICODE, make_bad_fd,
@@ -183,6 +184,7 @@ def testReprNoCloseFD(self):
183184
finally:
184185
os.close(fd)
185186

187+
@infinite_recursion(25)
186188
def testRecursiveRepr(self):
187189
# Issue #25455
188190
with swap_attr(self.f, 'name', self.f):

0 commit comments

Comments
 (0)