Skip to content

Commit 235cec7

Browse files
committed
Update expected error message for more informative error message.
1 parent afc6af1 commit 235cec7

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

tests/test_writer.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -184,11 +184,7 @@ def test_setter_invalid_scale_factor_input(self):
184184
a_input = a + 0.1
185185
assert a_input != a
186186
try:
187-
with pytest.raises(
188-
AssertionError,
189-
match="The scale factor of masses does not match the scale factor of the "
190-
"Writer.",
191-
):
187+
with pytest.raises(AssertionError, match="The scale factor of masses"):
192188
w.gas.masses = cosmo_array(
193189
np.ones(100),
194190
u.solMass,

0 commit comments

Comments
 (0)