From f6d8b12a4e062e1a6e7a3634b8f6b79139a0376e Mon Sep 17 00:00:00 2001 From: CameronD73 <56762299+CameronD73@users.noreply.github.com> Date: Tue, 10 Sep 2024 01:32:47 +1000 Subject: [PATCH] Improve warning message in date_test.py when 3 tests are skipped The test is skipped for locales other than en_US, but the message simply reported that the locale had to be English, which is baffling for anybody with an English locale other than US. --- gramps/gen/lib/test/date_test.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gramps/gen/lib/test/date_test.py b/gramps/gen/lib/test/date_test.py index 8587f3a3a8..e1cb568426 100644 --- a/gramps/gen/lib/test/date_test.py +++ b/gramps/gen/lib/test/date_test.py @@ -414,7 +414,7 @@ def test_non_gregorian(self): @unittest.skipUnless( ENGLISH_DATE_HANDLER, - "This test of Date() matching logic can only run in English locale.", + "This test of Date() matching logic can only run in US-English locale.", ) class MatchDateTest(BaseDateTest): """ @@ -635,7 +635,7 @@ def _get_date(self, value): # ------------------------------------------------------------------------- @unittest.skipUnless( ENGLISH_DATE_HANDLER, - "This test of Date() matching logic can only run in English locale.", + "This test of Date() matching logic can only run in US-English locale.", ) class DateComparisonTest(BaseDateTest): """ @@ -1010,7 +1010,7 @@ def test_comparison(self): # ------------------------------------------------------------------------- @unittest.skipUnless( ENGLISH_DATE_HANDLER, - "This test of Date() matching logic can only run in English locale.", + "This test of Date() matching logic can only run in US-English locale.", ) class AgeTest(BaseDateTest): """