From 70ce23c5888a2cb7cce0bb60b51329d4f44d48db Mon Sep 17 00:00:00 2001 From: Sandro Dias Pinto Vitenti Date: Thu, 11 Jul 2024 13:46:21 -0300 Subject: [PATCH] Updating test to deal with enum str representations in python 3.10. --- tests/metadata/test_metadata_two_point.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/metadata/test_metadata_two_point.py b/tests/metadata/test_metadata_two_point.py index 90d8dc86..afbd0966 100644 --- a/tests/metadata/test_metadata_two_point.py +++ b/tests/metadata/test_metadata_two_point.py @@ -228,7 +228,7 @@ def test_two_point_xy_gal_gal_invalid_x_measurement(): ) with pytest.raises( ValueError, - match="Measurement Galaxies.COUNTS not in the measurements of bname1.", + match="Measurement .* not in the measurements of bname1.", ): TwoPointXY( x=x, y=y, x_measurement=Galaxies.COUNTS, y_measurement=Galaxies.COUNTS @@ -250,7 +250,7 @@ def test_two_point_xy_gal_gal_invalid_y_measurement(): ) with pytest.raises( ValueError, - match="Measurement Galaxies.COUNTS not in the measurements of bname2.", + match="Measurement .* not in the measurements of bname2.", ): TwoPointXY( x=x, y=y, x_measurement=Galaxies.COUNTS, y_measurement=Galaxies.COUNTS