Skip to content

Commit

Permalink
check for invalid_netcdf warning, too
Browse files Browse the repository at this point in the history
  • Loading branch information
kmuehlbauer committed Sep 23, 2024
1 parent 63fd322 commit dce4539
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions xarray/tests/test_backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -1866,6 +1866,8 @@ def test_encoding_enum__no_fill_value(self, recwarn):
if self.engine == "h5netcdf":
if not has_h5netcdf_1_4_0_or_above:
save_kwargs["invalid_netcdf"] = True
expected_warnings = 1
expected_msg = "You are writing invalid netcdf features to file"
else:
expected_warnings = 1
expected_msg = "Creating variable with default fill_value 0 which IS defined in enum type"
Expand Down

0 comments on commit dce4539

Please sign in to comment.