Skip to content

Commit

Permalink
try to add test
Browse files Browse the repository at this point in the history
  • Loading branch information
Carreau committed Nov 26, 2024
1 parent 0672acd commit 65d3e87
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

import pytest
from conftest import CPVER, EMSCRIPTEN_VER, PLATFORM
from pytest_pyodide import run_in_pyodide

import micropip._utils as _utils

Expand Down Expand Up @@ -103,6 +104,18 @@ def test_check_compatible(mock_platform, interp, abi, arch, ctx):
check_compatible(wheel_name)


@run_in_pyodide
def test_check_compatible_wasm32(selenium_standalone_micropip):
"""
Here we check in particular that pyodide_2024_0_wasm32 wheels are seen as
compatible as the platform is emscripten
"""
from micropip._utils import check_compatible

wheel_name = "pywavelets-1.8.0.dev0-cp312-cp312-pyodide_2024_0_wasm32.whl"
check_compatible(wheel_name)


_best_tag_test_cases = (
"package, version, incompatible_tags, compatible_tags",
# Tests assume that `compatible_tags` is sorted from least to most compatible:
Expand Down

0 comments on commit 65d3e87

Please sign in to comment.