* Add patch for Python 3.11 compatibilitys, fixes RHBZ#2034205. * Comment out a few lines in the selinux files that broke building on EPEL and don't seem to be needed. Fixes RHBZ#2029193. * Work around 2to3 being removed from Python setuptools.i9ce
parent
268050b7f4
commit
3f49a1709f
@ -0,0 +1,21 @@
|
||||
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', "<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