Skip to content

Commit d54d198

Browse files
Try to fix OverflowError with date ranges
1 parent f8b5831 commit d54d198

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from dateutil.tz import tzlocal
22
import pytest
33

4-
from pandas.compat import IS64
4+
from pandas.compat import IS64, WASM
55

66
from pandas import date_range
77

@@ -22,7 +22,7 @@
2222
)
2323
def test_dti_resolution(request, tz_naive_fixture, freq, expected):
2424
tz = tz_naive_fixture
25-
if freq == "YE" and not IS64 and isinstance(tz, tzlocal):
25+
if freq == "YE" and ((not IS64) or WASM) and isinstance(tz, tzlocal):
2626
request.applymarker(
2727
pytest.mark.xfail(reason="OverflowError inside tzlocal past 2038")
2828
)

0 commit comments

Comments
 (0)