diff options
author | Nikita Sobolev <mail@sobolevn.me> | 2023-11-16 23:12:27 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-16 23:12:27 (GMT) |
commit | f92ea63f6f2c37917fc095a1bc036a8b0c45a084 (patch) | |
tree | 50b820a10490f191cf26e5586f8de19f8b156f94 | |
parent | ceefa0b0795b5cc7adef89bd036ce843b5c78d3e (diff) | |
download | cpython-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.py | 4 |
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): |