Skip to content

Commit 6944fb6

Browse files
committed
updated tests
1 parent 8f2f345 commit 6944fb6

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

lib/iris/tests/unit/fileformats/netcdf/test_Saver.py

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1068,21 +1068,13 @@ def setUp(self):
10681068
self.exp_emsg = "Cell measures with missing data are not supported."
10691069

10701070
def test_masked_data__insitu(self):
1071-
# Test that the error is raised in the right place.
1071+
# Test that the error is not being raised.
10721072
with self.temp_filename(".nc") as nc_path:
10731073
saver = Saver(nc_path, "NETCDF4")
1074-
with self.assertRaisesRegex(ValueError, self.exp_emsg):
1075-
saver._create_generic_cf_array_var(
1076-
self.cube, self.names_map, self.cm
1074+
saver._create_generic_cf_array_var(
1075+
self.cube, self.names_map, self.cm
10771076
)
10781077

1079-
def test_masked_data__save_pipeline(self):
1080-
# Test that the right error is raised by the saver pipeline.
1081-
with self.temp_filename(".nc") as nc_path:
1082-
with Saver(nc_path, "NETCDF4") as saver:
1083-
with self.assertRaisesRegex(ValueError, self.exp_emsg):
1084-
saver.write(self.cube)
1085-
10861078

10871079
if __name__ == "__main__":
10881080
tests.main()

0 commit comments

Comments
 (0)