Skip to content

Commit cb3801f

Browse files
committed
Suppress all warnings
1 parent f835bcd commit cb3801f

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

xbout/tests/test_grid.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,11 @@ def test_open_grid_extra_dims(self, create_example_grid_file, tmp_path_factory):
5555
merge([example_grid, new_var]).to_netcdf(dodgy_grid_path, engine="h5netcdf")
5656

5757
with pytest.warns(
58-
UserWarning, match="drop all variables containing " "the dimensions 'w'"
58+
UserWarning, match="drop all variables containing the dimensions 'w'"
5959
):
60-
with open_boutdataset(datapath=dodgy_grid_path) as result:
61-
result = result.drop_vars(["x", "y"])
60+
with pytest.warns(UserWarning, match="o geometry type fou"):
61+
with open_boutdataset(datapath=dodgy_grid_path) as result:
62+
result = result.drop_vars(["x", "y"])
6263
assert_equal(result, example_grid)
6364
example_grid.close()
6465
result.close()

0 commit comments

Comments
 (0)