Skip to content

Commit 47f48a6

Browse files
Skip time.tzset() tests on WASM platforms
1 parent 1713c86 commit 47f48a6

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

pandas/tests/indexes/datetimes/methods/test_normalize.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ def test_normalize_tz(self):
7070
assert not rng.is_normalized
7171

7272
@td.skip_if_windows
73+
@td.skip_if_wasm # tzset is available only on Unix-like systems
7374
@pytest.mark.parametrize(
7475
"timezone",
7576
[

pandas/tests/tools/test_to_datetime.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -975,7 +975,8 @@ def test_to_datetime_now(self):
975975
assert pdnow.tzinfo is None
976976
assert pdnow2.tzinfo is None
977977

978-
@td.skip_if_windows # `tm.set_timezone` does not work in windows
978+
@td.skip_if_windows # `tm.set_timezone` does not work on Windows
979+
@td.skip_if_wasm # tzset is available only on Unix-like systems
979980
@pytest.mark.parametrize("tz", ["Pacific/Auckland", "US/Samoa"])
980981
def test_to_datetime_today(self, tz):
981982
# See GH#18666
@@ -1007,6 +1008,7 @@ def test_to_datetime_today_now_unicode_bytes(self, arg):
10071008
to_datetime([arg])
10081009

10091010
@pytest.mark.filterwarnings("ignore:Timestamp.utcnow is deprecated:FutureWarning")
1011+
@td.skip_if_wasm # tzset is available only on Unix-like systems
10101012
@pytest.mark.parametrize(
10111013
"format, expected_ds",
10121014
[

pandas/tests/tslibs/test_parsing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import pandas._testing as tm
2525
from pandas._testing._hypothesis import DATETIME_NO_TZ
2626

27-
27+
@td.skip_if_wasm # tzset is available only on Unix-like systems
2828
@pytest.mark.skipif(
2929
is_platform_windows() or ISMUSL,
3030
reason="TZ setting incorrect on Windows and MUSL Linux",

0 commit comments

Comments
 (0)