Update test_fileio.py from Cpython v3.11.2 by Masorubka1 · Pull Request #4821 · RustPython/RustPython
from test.support import cpython_only, swap_attr, gc_collect 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
@unittest.skipIf(is_wasi, "WASI does not expose st_blksize.") def testBlksize(self): # test private _blksize attribute blksize = io.DEFAULT_BUFFER_SIZE
if sys.platform != "win32": if sys.platform != "win32" and not is_emscripten: try: f = self.FileIO("/dev/tty", "a") except OSError: