skip MatchDateTest on non-English locales

svn: r23197
This commit is contained in:
Vassilii Khachaturov 2013-09-25 14:51:08 +00:00
parent a79e943c19
commit 03ccd6b8f9

View File

@ -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.