Skip to content

Commit 9fe1904

Browse files
Skip two more tzset test failures
1 parent 6cf568e commit 9fe1904

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

pandas/tests/scalar/timestamp/test_formats.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import pytz # a test below uses pytz but only inside a `eval` call
77

88
from pandas import Timestamp
9+
import pandas.util._test_decorators as td
910

1011
ts_no_ns = Timestamp(
1112
year=2019,
@@ -95,6 +96,7 @@ class TestTimestampRendering:
9596
@pytest.mark.parametrize(
9697
"date", ["2014-03-07", "2014-01-01 09:00", "2014-01-01 00:00:00.000000001"]
9798
)
99+
@td.skip_if_wasm # tzset is not available in WASM
98100
def test_repr(self, date, freq, tz):
99101
# avoid to match with timezone name
100102
freq_repr = f"'{freq}'"

pandas/tests/tools/test_to_datetime.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -959,6 +959,7 @@ def test_to_datetime_YYYYMMDD(self):
959959
assert actual == datetime(2008, 1, 15)
960960

961961
@td.skip_if_windows # `tm.set_timezone` does not work in windows
962+
@td.skip_if_wasm # tzset is available only on Unix-like systems
962963
def test_to_datetime_now(self):
963964
# See GH#18666
964965
with tm.set_timezone("US/Eastern"):

0 commit comments

Comments
 (0)