Skip to content

Commit 2c51af1

Browse files
authored
fix error message check
1 parent 24b1bbc commit 2c51af1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: tests/test_diffraction_objects.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -523,9 +523,9 @@ def test_id_setter_error(do_minimal):
523523
def test_xarray_yarray_length_mismatch():
524524
with pytest.raises(
525525
ValueError,
526-
match="'xarray' and 'yarray' must have the same length. "
527-
"Please re-initialize 'DiffractionObject' or re-run the method 'input_data' "
528-
"with 'xarray' and 'yarray' of identical length",
526+
match="'xarray' and 'yarray' are different lengths. "
527+
"They must correspond to each other and have the same length. Please "
528+
"re-initialize 'DiffractionObject'with valid 'xarray' and 'yarray's"
529529
):
530530
DiffractionObject(
531531
xarray=np.array([1.0, 2.0]), yarray=np.array([0.0, 0.0, 0.0]), xtype="tth", wavelength=1.54

0 commit comments

Comments
 (0)