TST: testDateDetectorTemplateOverlap fix for python-2.5 without %f in strftime

pull/349/head
Daniel Black 2013-09-16 00:09:41 +10:00
parent d8f73c0205
commit 2cefce5ee0
1 changed files with 1 additions and 0 deletions

View File

@ -151,6 +151,7 @@ class DateDetectorTest(unittest.TestCase):
for date in iterDates(year):
for pattern in patterns:
datestr = date.strftime(pattern)
datestr = re.sub(r'%f','300', datestr) # for python 2.5 where there is no %f
datestrs = set([
datestr,
re.sub(r"(\s)0", r"\1 ", datestr),