Skip to content

Commit

Permalink
Error message changes with the method
Browse files Browse the repository at this point in the history
  • Loading branch information
e-koch committed Nov 27, 2020
1 parent f37b2b3 commit eb56512
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spectral_cube/tests/test_spectral_cube.py
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,7 @@ def test_transpose_arg_world(self, method, data_adv, data_vad, use_dask):
for axis in [1, 2]:

with pytest.raises(utils.WCSCelestialError,
match=re.escape("world_take_along_axis requires the celestial axes")):
match=re.escape(f"{method} requires the celestial axes")):

assert_allclose(getattr(c1, method)(axis=axis),
getattr(c2, method)(axis=axis))
Expand Down

0 comments on commit eb56512

Please sign in to comment.