|
7 | 7 | import numpy as np
|
8 | 8 | import pytest
|
9 | 9 |
|
10 |
| -from pandas.compat import IS64 |
| 10 | +from pandas.compat import IS64, WASM |
11 | 11 | from pandas.errors import EmptyDataError
|
12 | 12 |
|
13 | 13 | import pandas as pd
|
@@ -190,7 +190,7 @@ def test_date_time(datapath):
|
190 | 190 | res = df0["DateTimeHi"].astype("M8[us]").dt.round("ms")
|
191 | 191 | df0["DateTimeHi"] = res.astype("M8[ms]")
|
192 | 192 |
|
193 |
| - if not IS64: |
| 193 | + if (not IS64) or (WASM): |
194 | 194 | # No good reason for this, just what we get on the CI
|
195 | 195 | df0.loc[0, "DateTimeHi"] += np.timedelta64(1, "ms")
|
196 | 196 | df0.loc[[2, 3], "DateTimeHi"] -= np.timedelta64(1, "ms")
|
@@ -285,7 +285,7 @@ def test_max_sas_date(datapath):
|
285 | 285 | columns=["text", "dt_as_float", "dt_as_dt", "date_as_float", "date_as_date"],
|
286 | 286 | )
|
287 | 287 |
|
288 |
| - if not IS64: |
| 288 | + if (not IS64) or (WASM): |
289 | 289 | # No good reason for this, just what we get on the CI
|
290 | 290 | expected.loc[:, "dt_as_dt"] -= np.timedelta64(1, "ms")
|
291 | 291 |
|
@@ -328,7 +328,7 @@ def test_max_sas_date_iterator(datapath):
|
328 | 328 | columns=col_order,
|
329 | 329 | ),
|
330 | 330 | ]
|
331 |
| - if not IS64: |
| 331 | + if (not IS64) or (WASM): |
332 | 332 | # No good reason for this, just what we get on the CI
|
333 | 333 | expected[0].loc[0, "dt_as_dt"] -= np.timedelta64(1, "ms")
|
334 | 334 | expected[1].loc[0, "dt_as_dt"] -= np.timedelta64(1, "ms")
|
@@ -359,7 +359,7 @@ def test_null_date(datapath):
|
359 | 359 | ),
|
360 | 360 | },
|
361 | 361 | )
|
362 |
| - if not IS64: |
| 362 | + if (not IS64) or (WASM): |
363 | 363 | # No good reason for this, just what we get on the CI
|
364 | 364 | expected.loc[0, "datetimecol"] -= np.timedelta64(1, "ms")
|
365 | 365 | tm.assert_frame_equal(df, expected)
|
|
0 commit comments