diff --git a/pandas/tests/scalar/timestamp/test_formats.py b/pandas/tests/scalar/timestamp/test_formats.py index 6a578b0a9eb09..bc179bb1a2d74 100644 --- a/pandas/tests/scalar/timestamp/test_formats.py +++ b/pandas/tests/scalar/timestamp/test_formats.py @@ -6,6 +6,7 @@ import pytz # a test below uses pytz but only inside a `eval` call from pandas import Timestamp +import pandas.util._test_decorators as td ts_no_ns = Timestamp( year=2019, @@ -95,6 +96,7 @@ class TestTimestampRendering: @pytest.mark.parametrize( "date", ["2014-03-07", "2014-01-01 09:00", "2014-01-01 00:00:00.000000001"] ) + @td.skip_if_wasm # tzset is not available in WASM def test_repr(self, date, freq, tz): # avoid to match with timezone name freq_repr = f"'{freq}'" diff --git a/pandas/tests/tools/test_to_datetime.py b/pandas/tests/tools/test_to_datetime.py index 4e8a97701467e..3825b20baf585 100644 --- a/pandas/tests/tools/test_to_datetime.py +++ b/pandas/tests/tools/test_to_datetime.py @@ -959,6 +959,7 @@ def test_to_datetime_YYYYMMDD(self): assert actual == datetime(2008, 1, 15) @td.skip_if_windows # `tm.set_timezone` does not work in windows + @td.skip_if_wasm # tzset is available only on Unix-like systems def test_to_datetime_now(self): # See GH#18666 with tm.set_timezone("US/Eastern"):