Skip to content

Commit

Permalink
Improve warning message in date_test.py when 3 tests are skipped
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
CameronD73 authored and Nick-Hall committed Dec 19, 2024
1 parent e898c78 commit f6d8b12
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gramps/gen/lib/test/date_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand Down Expand Up @@ -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):
"""
Expand Down Expand Up @@ -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):
"""
Expand Down

0 comments on commit f6d8b12

Please sign in to comment.