gh-111799: Fix testRecursiveRepr from test_fileio on WASI (GH-112181)

This commit is contained in:
Nikita Sobolev 2023-11-17 02:12:27 +03:00 committed by GitHub
parent ceefa0b079
commit f92ea63f6f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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):