Skip to content

Commit

Permalink
Skip two more tzset test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
agriyakhetarpal committed Mar 5, 2024
1 parent 6cf568e commit 9fe1904
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pandas/tests/scalar/timestamp/test_formats.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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}'"
Expand Down
1 change: 1 addition & 0 deletions pandas/tests/tools/test_to_datetime.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"):
Expand Down

0 comments on commit 9fe1904

Please sign in to comment.