mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
bpo-40280: Address more test failures on Emscripten (GH-31050)
Co-authored-by: Brett Cannon <brett@python.org>
This commit is contained in:
parent
9d4161a60c
commit
96b344c2f1
27 changed files with 227 additions and 49 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue