skip MatchDateTest on non-English locales

svn: r23196
This commit is contained in:
Vassilii Khachaturov 2013-09-25 14:50:39 +00:00
parent 736de69fb9
commit 1d4bb780a2

View File

@ -38,6 +38,7 @@ from ...config import config
from ...datehandler import get_date_formats, set_format from ...datehandler import get_date_formats, set_format
from ...datehandler import parser as _dp from ...datehandler import parser as _dp
from ...datehandler import displayer as _dd from ...datehandler import displayer as _dd
from ...datehandler._datedisplay import DateDisplayEn
from ...lib.date import Date, DateError from ...lib.date import Date, DateError
date_tests = {} date_tests = {}
@ -267,6 +268,8 @@ class ParserDateTest(BaseDateTest):
# MatchDateTest # MatchDateTest
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
@unittest.skipIf(_dd.__class__ != DateDisplayEn,
"This test of Date() matching logic can only run in English locale.")
class MatchDateTest(BaseDateTest): class MatchDateTest(BaseDateTest):
""" """
Date match tests. Date match tests.