mirror of https://github.com/fail2ban/fail2ban
fail2banregextestcase: compatibility fix for testWrongRE
parent
56485c8548
commit
27294c4b9e
|
@ -146,7 +146,7 @@ class Fail2banRegexTest(LogCaptureTestCase):
|
||||||
"test", r"^(?:(?P<type>A)|B)? (?(typo)...) from <ADDR>"
|
"test", r"^(?:(?P<type>A)|B)? (?(typo)...) from <ADDR>"
|
||||||
))
|
))
|
||||||
self.assertLogged("Unable to compile regular expression")
|
self.assertLogged("Unable to compile regular expression")
|
||||||
self.assertLogged("unknown group name: 'typo'", "at position 23", all=False); # details of failed compilation
|
self.assertLogged("unknown group name", "at position 23", all=False); # details of failed compilation
|
||||||
|
|
||||||
def testWrongIngnoreRE(self):
|
def testWrongIngnoreRE(self):
|
||||||
self.assertFalse(_test_exec(
|
self.assertFalse(_test_exec(
|
||||||
|
|
Loading…
Reference in New Issue