mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
TST: testDateDetectorTemplateOverlap fix for python-2.5 without %f in strftime
This commit is contained in:
parent
d8f73c0205
commit
2cefce5ee0
1 changed files with 1 additions and 0 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Reference in a new issue