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:
Ani 2025-07-23 01:20:13 +05:30 committed by GitHub
parent d6cf05b5d0
commit aafb1435d8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 19 additions and 15 deletions

View file

@ -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