diff --git a/test/integration/test_integration__io.py b/test/integration/test_integration__io.py index 2dc0834e..0b12e4ac 100644 --- a/test/integration/test_integration__io.py +++ b/test/integration/test_integration__io.py @@ -6,6 +6,7 @@ import sys import tempfile import warnings +from distutils.version import LooseVersion import dask.array as da import mock @@ -930,6 +931,10 @@ def test_notgeoreferenced_warning(): rioxarray.open_rasterio(tmp_file) +@pytest.mark.xfail( + LooseVersion(rasterio.__gdal_version__) < LooseVersion("3.0.4"), + reason="This was fixed in GDAL 3.0.4", +) def test_nc_attr_loading(): with rioxarray.open_rasterio( os.path.join(TEST_INPUT_DATA_DIR, "PLANET_SCOPE_3D.nc") @@ -942,5 +947,5 @@ def test_nc_attr_loading(): "units": "seconds since 2016-12-19T10:27:29.687763", "calendar": "proleptic_gregorian", } - assert str(rds.time.values[0]) == "2016-12-19 10:27:29" - assert str(rds.time.values[1]) == "2016-12-29 12:52:41.659696" + assert str(rds.time.values[0]) == "2016-12-19 10:27:29.687763" + assert str(rds.time.values[1]) == "2016-12-29 12:52:42.347451"