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

@ -787,7 +787,7 @@ def test_get_signal_name(self):
def test_linked_to_musl(self):
linked = support.linked_to_musl()
self.assertIsNotNone(linked)
if support.is_wasi or support.is_emscripten:
if support.is_wasm32:
self.assertTrue(linked)
# The value is cached, so make sure it returns the same value again.
self.assertIs(linked, support.linked_to_musl())