mirror of
https://github.com/python/cpython.git
synced 2025-11-03 15:11:34 +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
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue