Skip to content
/ xarray Public
forked from pydata/xarray

Commit

Permalink
hard-code the precision (I believe this was missed in pydata#9081)
Browse files Browse the repository at this point in the history
  • Loading branch information
keewis committed Jun 19, 2024
1 parent 379d408 commit 429f87d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xarray/tests/test_backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -4285,7 +4285,7 @@ def test_roundtrip_coordinates_with_space(self) -> None:
def test_roundtrip_numpy_datetime_data(self) -> None:
# Override method in DatasetIOBase - remove not applicable
# save_kwargs
times = pd.to_datetime(["2000-01-01", "2000-01-02", "NaT"])
times = pd.to_datetime(["2000-01-01", "2000-01-02", "NaT"], unit="ns")
expected = Dataset({"t": ("t", times), "t0": times[0]})
with self.roundtrip(expected) as actual:
assert_identical(expected, actual)
Expand Down

0 comments on commit 429f87d

Please sign in to comment.