mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
fail2banregextestcase: compatibility fix for testWrongRE
This commit is contained in:
parent
56485c8548
commit
27294c4b9e
1 changed files with 1 additions and 1 deletions
|
|
@ -146,7 +146,7 @@ class Fail2banRegexTest(LogCaptureTestCase):
|
|||
"test", r"^(?:(?P<type>A)|B)? (?(typo)...) from <ADDR>"
|
||||
))
|
||||
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):
|
||||
self.assertFalse(_test_exec(
|
||||
|
|
|
|||
Loading…
Reference in a new issue