skip MatchDateTest on non-English locales
svn: r23197
This commit is contained in:
parent
a79e943c19
commit
03ccd6b8f9
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user