mirror of
https://github.com/python/cpython
synced 2024-10-06 14:07:56 +00:00
gh-111799: Fix testRecursiveRepr
from test_fileio
on WASI (GH-112181)
This commit is contained in:
parent
ceefa0b079
commit
f92ea63f6f
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue