From 1d4bb780a2f8b5358f60ed87ec2b53cdfadf1e97 Mon Sep 17 00:00:00 2001 From: Vassilii Khachaturov Date: Wed, 25 Sep 2013 14:50:39 +0000 Subject: [PATCH] skip MatchDateTest on non-English locales svn: r23196 --- gramps/gen/lib/test/date_test.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gramps/gen/lib/test/date_test.py b/gramps/gen/lib/test/date_test.py index 6beb78869..228ea300d 100644 --- a/gramps/gen/lib/test/date_test.py +++ b/gramps/gen/lib/test/date_test.py @@ -38,6 +38,7 @@ from ...config import config from ...datehandler import get_date_formats, set_format from ...datehandler import parser as _dp from ...datehandler import displayer as _dd +from ...datehandler._datedisplay import DateDisplayEn from ...lib.date import Date, DateError date_tests = {} @@ -267,6 +268,8 @@ class ParserDateTest(BaseDateTest): # MatchDateTest # #------------------------------------------------------------------------- +@unittest.skipIf(_dd.__class__ != DateDisplayEn, + "This test of Date() matching logic can only run in English locale.") class MatchDateTest(BaseDateTest): """ Date match tests.