Skip to content

Commit

Permalink
use a better test
Browse files Browse the repository at this point in the history
  • Loading branch information
mroeschke committed Jun 6, 2024
1 parent 5be89d5 commit 0905a28
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions python/dask_cudf/dask_cudf/io/tests/test_parquet.py
Original file line number Diff line number Diff line change
Expand Up @@ -610,10 +610,9 @@ def test_timezone_column(tmpdir):
}
)
pdf.to_parquet(path)
# cudf.read_parquet does not support reading timezone aware types yet, so check dtypes
got = dask_cudf.read_parquet(path).dtypes
expected = pd.Series(
{"time": pd.DatetimeTZDtype("ns", "UTC"), "x": np.dtype(np.int64)},
dtype=object,
)
pd.testing.assert_series_equal(got, expected)
got = dask_cudf.read_parquet(path)
# cudf.read_parquet does not support reading timezone aware types yet
assert got["time"].dtype == pd.DatetimeTZDtype("ns", "UTC")
got["time"] = got["time"].astype("datetime64[ns]")
expected = cudf.read_parquet(path)
dd.assert_eq(got, expected)

0 comments on commit 0905a28

Please sign in to comment.