Index: fail2ban-0.11.2/fail2ban/tests/actiontestcase.py =================================================================== --- fail2ban-0.11.2.orig/fail2ban/tests/actiontestcase.py +++ fail2ban-0.11.2/fail2ban/tests/actiontestcase.py @@ -244,14 +244,14 @@ class CommandActionTest(LogCaptureTestCa setattr(self.__action, 'ab', "") setattr(self.__action, 'x?family=inet6', "") # produce self-referencing properties except: - self.assertRaisesRegexp(ValueError, r"properties contain self referencing definitions", + self.assertRaisesRegex(ValueError, r"properties contain self referencing definitions", lambda: self.__action.replaceTag("", self.__action._properties, conditional="family=inet4") ) # remore self-referencing in props: delattr(self.__action, 'ac') # produce self-referencing query except: - self.assertRaisesRegexp(ValueError, r"possible self referencing definitions in query", + self.assertRaisesRegex(ValueError, r"possible self referencing definitions in query", lambda: self.__action.replaceTag(""*30, self.__action._properties, conditional="family=inet6") )