From 27294c4b9ee5d5568a1d5f83af744ea39d5a1acb Mon Sep 17 00:00:00 2001 From: "Sergey G. Brester" Date: Tue, 4 Apr 2023 13:30:12 +0200 Subject: [PATCH] fail2banregextestcase: compatibility fix for testWrongRE --- fail2ban/tests/fail2banregextestcase.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fail2ban/tests/fail2banregextestcase.py b/fail2ban/tests/fail2banregextestcase.py index 213ea89b..4b11ef9a 100644 --- a/fail2ban/tests/fail2banregextestcase.py +++ b/fail2ban/tests/fail2banregextestcase.py @@ -146,7 +146,7 @@ class Fail2banRegexTest(LogCaptureTestCase): "test", r"^(?:(?PA)|B)? (?(typo)...) from " )) 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(