Skip to content
/ xarray Public
forked from pydata/xarray

Commit 429f87d

Browse files
committed
hard-code the precision (I believe this was missed in pydata#9081)
1 parent 379d408 commit 429f87d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xarray/tests/test_backends.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4285,7 +4285,7 @@ def test_roundtrip_coordinates_with_space(self) -> None:
42854285
def test_roundtrip_numpy_datetime_data(self) -> None:
42864286
# Override method in DatasetIOBase - remove not applicable
42874287
# save_kwargs
4288-
times = pd.to_datetime(["2000-01-01", "2000-01-02", "NaT"])
4288+
times = pd.to_datetime(["2000-01-01", "2000-01-02", "NaT"], unit="ns")
42894289
expected = Dataset({"t": ("t", times), "t0": times[0]})
42904290
with self.roundtrip(expected) as actual:
42914291
assert_identical(expected, actual)

0 commit comments

Comments
 (0)