Skip to content

Commit

Permalink
pythongh-111799: Fix testRecursiveRepr from test_fileio on WASI (p…
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn authored Nov 16, 2023
1 parent ceefa0b commit f92ea63
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Lib/test/test_fileio.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit f92ea63

Please sign in to comment.