parent
1c3fb52316
commit
1cb769fd25
@ -1,21 +0,0 @@
|
||||
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', "<ac>")
|
||||
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("<a><b>",
|
||||
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("<x"*30+">"*30,
|
||||
self.__action._properties, conditional="family=inet6")
|
||||
)
|
Loading…
Reference in new issue