[3.14] Use test.support.is_wasm32 flag for is_emscripten or is_wasi for generic checks (GH-136815) (#138643)

Co-authored-by: Ani <5357586+anistark@users.noreply.github.com>
Co-authored-by: Brett Cannon <brett@python.org>
This commit is contained in:
Miss Islington (bot) 2025-09-08 15:20:00 +02:00 committed by GitHub
parent f23e7605b8
commit 5074241f3d
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):