diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-05-19 15:05:52 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-19 15:05:52 (GMT) |
commit | 7afccd34a659af6676c17abbd431e58093d25746 (patch) | |
tree | 24bd5c780dc660b2882019f28260d9bd1d8e8daf /Lib/test/test_fileio.py | |
parent | 611d43c2a49e7c2c35fc03b0f58570b07c41b0eb (diff) | |
download | cpython-7afccd34a659af6676c17abbd431e58093d25746.zip cpython-7afccd34a659af6676c17abbd431e58093d25746.tar.gz cpython-7afccd34a659af6676c17abbd431e58093d25746.tar.bz2 |
gh-90473: Decrease recursion limit and skip tests on WASI (GH-92803)
(cherry picked from commit 137fd3d88aa46669f5717734e823f4c594ab2843)
Co-authored-by: Christian Heimes <christian@python.org>
Diffstat (limited to 'Lib/test/test_fileio.py')
-rw-r--r-- | Lib/test/test_fileio.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/test/test_fileio.py b/Lib/test/test_fileio.py index e4984d3..c26cdc02 100644 --- a/Lib/test/test_fileio.py +++ b/Lib/test/test_fileio.py @@ -9,7 +9,9 @@ from array import array from weakref import proxy from functools import wraps -from test.support import cpython_only, swap_attr, gc_collect, is_emscripten +from test.support import ( + cpython_only, swap_attr, gc_collect, is_emscripten, is_wasi +) from test.support.os_helper import (TESTFN, TESTFN_UNICODE, make_bad_fd) from test.support.warnings_helper import check_warnings from collections import UserList @@ -65,6 +67,7 @@ class AutoFileTests: self.assertRaises((AttributeError, TypeError), setattr, f, attr, 'oops') + @unittest.skipIf(is_wasi, "WASI does not expose st_blksize.") def testBlksize(self): # test private _blksize attribute blksize = io.DEFAULT_BUFFER_SIZE |