fail2banregextestcase: compatibility fix for testWrongRE

pull/2860/head^2
Sergey G. Brester 2023-04-04 13:30:12 +02:00 committed by GitHub
parent 56485c8548
commit 27294c4b9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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(