diff options
author | Sergey G. Brester <serg.brester@sebres.de> | 2023-04-04 13:30:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-04 13:30:12 +0200 |
commit | 27294c4b9ee5d5568a1d5f83af744ea39d5a1acb (patch) | |
tree | 48ca59d13267a2daf6aabf38dc9fe6de6a9dcc38 | |
parent | 56485c8548785de5083f53beb33b42228d756fc9 (diff) | |
download | fail2ban-27294c4b9ee5d5568a1d5f83af744ea39d5a1acb.tar.gz |
fail2banregextestcase: compatibility fix for testWrongRE
-rw-r--r-- | fail2ban/tests/fail2banregextestcase.py | 2 |
1 files changed, 1 insertions, 1 deletions
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"^(?:(?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( |