From 292a33e76a604d0d012bbf2c34c3fd2e50ae4045 Mon Sep 17 00:00:00 2001 From: Michele Guerini Rocco Date: Fri, 21 Feb 2025 18:12:46 +0100 Subject: [PATCH] tests: reduce test_beam_shape verbosity --- tests/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/__init__.py b/tests/__init__.py index 59c65e4..0242bcf 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -251,9 +251,9 @@ class GrayTest: plt.show() for ref, cand in zip(ref, cand): - with self.subTest(ray=(int(ref['j']), int(ref['k']))): - self.assertAlmostEqual(ref['x'], cand['x'], 1) - self.assertAlmostEqual(ref['y'], cand['y'], 1) + ray = f"ray ({ref['j']:g},{ref['k']:g}) changed" + self.assertAlmostEqual(ref['x'], cand['x'], 1, msg=ray) + self.assertAlmostEqual(ref['y'], cand['y'], 1, msg=ray) def test_error_biased(self): '''