mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
gh-111799: Fix testRecursiveRepr
from test_fileio
on WASI (GH-112181)
This commit is contained in:
parent
ceefa0b079
commit
f92ea63f6f
1 changed files with 3 additions and 1 deletions
|
@ -10,7 +10,8 @@ from weakref import proxy
|
|||
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 @@ class AutoFileTests:
|
|||
finally:
|
||||
os.close(fd)
|
||||
|
||||
@infinite_recursion(25)
|
||||
def testRecursiveRepr(self):
|
||||
# Issue #25455
|
||||
with swap_attr(self.f, 'name', self.f):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue