summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNikita Sobolev <mail@sobolevn.me>2023-11-16 23:12:27 (GMT)
committerGitHub <noreply@github.com>2023-11-16 23:12:27 (GMT)
commitf92ea63f6f2c37917fc095a1bc036a8b0c45a084 (patch)
tree50b820a10490f191cf26e5586f8de19f8b156f94
parentceefa0b0795b5cc7adef89bd036ce843b5c78d3e (diff)
downloadcpython-f92ea63f6f2c37917fc095a1bc036a8b0c45a084.zip
cpython-f92ea63f6f2c37917fc095a1bc036a8b0c45a084.tar.gz
cpython-f92ea63f6f2c37917fc095a1bc036a8b0c45a084.tar.bz2
gh-111799: Fix `testRecursiveRepr` from `test_fileio` on WASI (GH-112181)
-rw-r--r--Lib/test/test_fileio.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/test_fileio.py b/Lib/test/test_fileio.py
index ebfcffd..f490485 100644
--- a/Lib/test/test_fileio.py
+++ b/Lib/test/test_fileio.py
@@ -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):