diff options
author | Christian Heimes <christian@python.org> | 2022-02-05 19:52:01 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-05 19:52:01 (GMT) |
commit | 96b344c2f15cb09251018f57f19643fe20637392 (patch) | |
tree | 3fe6c8f5d1a2897881806db1f3b441d11114adeb /Lib/test/test_fileio.py | |
parent | 9d4161a60ca8b470148ffd6c73e3110a0aa6d66f (diff) | |
download | cpython-96b344c2f15cb09251018f57f19643fe20637392.zip cpython-96b344c2f15cb09251018f57f19643fe20637392.tar.gz cpython-96b344c2f15cb09251018f57f19643fe20637392.tar.bz2 |
bpo-40280: Address more test failures on Emscripten (GH-31050)
Co-authored-by: Brett Cannon <brett@python.org>
Diffstat (limited to 'Lib/test/test_fileio.py')
-rw-r--r-- | Lib/test/test_fileio.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_fileio.py b/Lib/test/test_fileio.py index 4269b0e..e4984d3 100644 --- a/Lib/test/test_fileio.py +++ b/Lib/test/test_fileio.py @@ -9,7 +9,7 @@ from array import array from weakref import proxy from functools import wraps -from test.support import cpython_only, swap_attr, gc_collect +from test.support import cpython_only, swap_attr, gc_collect, is_emscripten from test.support.os_helper import (TESTFN, TESTFN_UNICODE, make_bad_fd) from test.support.warnings_helper import check_warnings from collections import UserList @@ -373,7 +373,7 @@ class OtherFileTests: self.assertEqual(f.isatty(), False) f.close() - if sys.platform != "win32": + if sys.platform != "win32" and not is_emscripten: try: f = self.FileIO("/dev/tty", "a") except OSError: |