mirror of
https://github.com/python/cpython.git
synced 2025-12-21 16:11:52 +00:00
Use test.support.is_wasm32 flag for is_emscripten or is_wasi for generic checks (GH-136815)
Co-authored-by: Brett Cannon <brett@python.org>
This commit is contained in:
parent
d6cf05b5d0
commit
aafb1435d8
9 changed files with 19 additions and 15 deletions
|
|
@ -1,6 +1,6 @@
|
|||
import unittest
|
||||
from test.support import (
|
||||
is_android, is_apple_mobile, is_emscripten, is_wasi, reap_children, verbose
|
||||
is_android, is_apple_mobile, is_wasm32, reap_children, verbose
|
||||
)
|
||||
from test.support.import_helper import import_module
|
||||
from test.support.os_helper import TESTFN, unlink
|
||||
|
|
@ -8,7 +8,7 @@ from test.support.os_helper import TESTFN, unlink
|
|||
# Skip these tests if termios is not available
|
||||
import_module('termios')
|
||||
|
||||
if is_android or is_apple_mobile or is_emscripten or is_wasi:
|
||||
if is_android or is_apple_mobile or is_wasm32:
|
||||
raise unittest.SkipTest("pty is not available on this platform")
|
||||
|
||||
import errno
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue