Skip to content

Commit eff0efe

Browse files
committed
Remove with_timestamps from test
1 parent 0e5dafa commit eff0efe

File tree

1 file changed

+2
-16
lines changed

1 file changed

+2
-16
lines changed

tests/test_field.py

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -30,29 +30,15 @@ def test_field_from_netcdf_variables():
3030
f3 = Field.from_netcdf(filename, variable, dims)
3131

3232

33-
@pytest.mark.parametrize(
34-
"with_timestamps",
35-
[
36-
pytest.param(
37-
True, marks=[pytest.mark.v4remove, pytest.mark.xfail(reason="GH1918. This test should be rewritten.")]
38-
),
39-
False,
40-
],
41-
)
42-
def test_field_from_netcdf(with_timestamps):
33+
def test_field_from_netcdf():
4334
filenames = {
4435
"lon": str(TEST_DATA / "mask_nemo_cross_180lon.nc"),
4536
"lat": str(TEST_DATA / "mask_nemo_cross_180lon.nc"),
4637
"data": str(TEST_DATA / "Uu_eastward_nemo_cross_180lon.nc"),
4738
}
4839
variable = "U"
4940
dimensions = {"lon": "glamf", "lat": "gphif"}
50-
if with_timestamps:
51-
timestamp_types = [[[2]], [[np.datetime64("2000-01-01")]]]
52-
for timestamps in timestamp_types:
53-
Field.from_netcdf(filenames, variable, dimensions, interp_method="cgrid_velocity", timestamps=timestamps)
54-
else:
55-
Field.from_netcdf(filenames, variable, dimensions, interp_method="cgrid_velocity")
41+
Field.from_netcdf(filenames, variable, dimensions, interp_method="cgrid_velocity")
5642

5743

5844
@pytest.mark.parametrize(

0 commit comments

Comments
 (0)