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

@ -33,7 +33,7 @@
assert_python_failure, spawn_python)
from test.support import threading_helper
from test.support import (reap_children, captured_stdout,
captured_stderr, is_emscripten, is_wasi,
captured_stderr, is_wasm32,
requires_docstrings, MISSING_C_DOCSTRINGS)
from test.support.os_helper import (TESTFN, rmtree, unlink)
from test.test_pydoc import pydoc_mod
@ -2081,7 +2081,7 @@ def test_html_doc_routines_in_module(self):
@unittest.skipIf(
is_emscripten or is_wasi,
is_wasm32,
"Socket server not available on Emscripten/WASI."
)
class PydocServerTest(unittest.TestCase):