Index: fail2ban-1.0.1/fail2ban/tests/actiontestcase.py =================================================================== --- fail2ban-1.0.1.orig/fail2ban/tests/actiontestcase.py +++ fail2ban-1.0.1/fail2ban/tests/actiontestcase.py @@ -242,14 +242,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") )