mirror of
https://github.com/python/cpython.git
synced 2025-10-22 17:33:55 +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
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue