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

@ -17,7 +17,7 @@
from test.support import import_helper
from test.support import cpython_only
from test.support import is_emscripten, is_wasi
from test.support import is_emscripten, is_wasi, is_wasm32
from test.support import infinite_recursion
from test.support import os_helper
from test.support.os_helper import TESTFN, FS_NONASCII, FakePath
@ -3158,7 +3158,7 @@ def test_absolute_posix(self):
self.assertEqual(str(P('//a/b').absolute()), '//a/b')
@unittest.skipIf(
is_emscripten or is_wasi,
is_wasm32,
"umask is not implemented on Emscripten/WASI."
)
@needs_posix
@ -3189,7 +3189,7 @@ def test_resolve_root(self):
os.chdir(current_directory)
@unittest.skipIf(
is_emscripten or is_wasi,
is_wasm32,
"umask is not implemented on Emscripten/WASI."
)
@needs_posix