Skip to content

Commit

Permalink
Make UTC assert more specific
Browse files Browse the repository at this point in the history
  • Loading branch information
theroggy committed Jan 22, 2025
1 parent deb862c commit e35c356
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pyogrio/tests/test_geopandas_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
import geopandas as gp
import pandas as pd
from geopandas.array import from_wkt
from pandas.api.types import is_datetime64_dtype

import shapely # if geopandas is present, shapely is expected to be present
from shapely.geometry import Point
Expand Down Expand Up @@ -432,7 +431,7 @@ def test_write_read_datetime_no_tz(tmp_path, ext, use_arrow):
assert_series_equal(result.dates, df.dates.dt.tz_localize("UTC"))
pytest.xfail("naive datetimes read wrong in GPKG with GDAL < 3.11 via arrow")

assert is_datetime64_dtype(result.dates.dtype)
assert str(result.dates.dtype) == "datetime64[ms, UTC]"
assert_geodataframe_equal(result, df)


Expand Down

0 comments on commit e35c356

Please sign in to comment.