Skip to content

Commit

Permalink
assert raises bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
marqh committed Feb 23, 2017
1 parent ca61115 commit 539f058
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/iris/tests/test_pp_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def test_wgdos(self):
# (we cannot currently write WGDOS packed fields without mo_pack)
temp_filename = iris.util.create_temp_filename(".pp")
with mock.patch('iris.fileformats.pp.mo_pack', None):
with self.assertRaises(NotImplementedError):
with self.assertRaises(ValueError):
with open(temp_filename, 'wb') as temp_fh:
r[0].save(temp_fh)
os.remove(temp_filename)
Expand Down

0 comments on commit 539f058

Please sign in to comment.