Skip to content

Commit 1713c86

Browse files
Add pytest decorator to skip tests on WASM
1 parent f159469 commit 1713c86

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pandas/util/_test_decorators.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ def test_foo():
2525
"""
2626
from __future__ import annotations
2727

28+
import sys
29+
import platform
2830
import locale
2931
from typing import (
3032
TYPE_CHECKING,
@@ -114,6 +116,10 @@ def skip_if_no(package: str, min_version: str | None = None) -> pytest.MarkDecor
114116
locale.getlocale()[0] != "en_US",
115117
reason=f"Set local {locale.getlocale()[0]} is not en_US",
116118
)
119+
skip_if_wasm = pytest.mark.skipif(
120+
(sys.platform == "emscripten") or (platform.machine() in ["wasm32", "wasm64"]),
121+
reason="does not support wasm"
122+
)
117123

118124

119125
def parametrize_fixture_doc(*args) -> Callable[[F], F]:

0 commit comments

Comments
 (0)