Skip to content

Commit bbc8868

Browse files
Resolve last two tzset failures on WASM
1 parent 3f07fa9 commit bbc8868

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

pandas/tests/scalar/timestamp/methods/test_replace.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,13 +99,15 @@ def test_replace_integer_args(self, tz_aware_fixture):
9999
with pytest.raises(ValueError, match=msg):
100100
ts.replace(hour=0.1)
101101

102+
@td.skip_if_wasm # tzset is available only on Unix-like systems
102103
def test_replace_tzinfo_equiv_tz_localize_none(self):
103104
# GH#14621, GH#7825
104105
# assert conversion to naive is the same as replacing tzinfo with None
105106
ts = Timestamp("2013-11-03 01:59:59.999999-0400", tz="US/Eastern")
106107
assert ts.tz_localize(None) == ts.replace(tzinfo=None)
107108

108109
@td.skip_if_windows
110+
@td.skip_if_wasm # tzset is available only on Unix-like systems
109111
def test_replace_tzinfo(self):
110112
# GH#15683
111113
dt = datetime(2016, 3, 27, 1)

pandas/tests/scalar/timestamp/methods/test_timestamp_method.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
class TestTimestampMethod:
1313
@td.skip_if_windows
14+
@td.skip_if_wasm # tzset is available only on Unix-like systems
1415
def test_timestamp(self, fixed_now_ts):
1516
# GH#17329
1617
# tz-naive --> treat it as if it were UTC for purposes of timestamp()

0 commit comments

Comments
 (0)