Skip to content

Commit

Permalink
Minor test fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
pp-mo committed Mar 10, 2023
1 parent 5d0a707 commit 431036f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/iris/tests/unit/fileformats/netcdf/test_Saver.py
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,7 @@ def test_valid_range_and_valid_min_valid_max_provided(self):
self.container.attributes["valid_range"] = [1, 2]
self.container.attributes["valid_min"] = [1]
msg = 'Both "valid_range" and "valid_min"'
with Saver(mock.Mock(), "NETCDF4") as saver:
with Saver("nonexistent test file", "NETCDF4") as saver:
with self.assertRaisesRegex(ValueError, msg):
saver.check_attribute_compliance(
self.container, self.data_dtype
Expand Down

0 comments on commit 431036f

Please sign in to comment.