mirror of
https://github.com/python/cpython.git
synced 2025-11-24 20:30:18 +00:00
[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:
parent
f23e7605b8
commit
5074241f3d
9 changed files with 19 additions and 15 deletions
|
|
@ -784,7 +784,7 @@ class TestSupport(unittest.TestCase):
|
|||
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