summaryrefslogtreecommitdiff
path: root/fail2ban
diff options
context:
space:
mode:
authorsebres <serg.brester@sebres.de>2022-02-10 17:04:47 +0100
committersebres <serg.brester@sebres.de>2022-02-10 17:04:47 +0100
commit8b11c89ed4494215f8e117b946fdd2d4eb4541d7 (patch)
tree189b8741c48295cd6e25d9ff92dd6ba99ed2f45d /fail2ban
parentff7fe572bf90010ee40c9d9966e7f5ef3ee4a145 (diff)
downloadfail2ban-8b11c89ed4494215f8e117b946fdd2d4eb4541d7.tar.gz
amend to drop support of python 2.6
Diffstat (limited to 'fail2ban')
-rw-r--r--fail2ban/tests/utils.py17
1 files changed, 0 insertions, 17 deletions
diff --git a/fail2ban/tests/utils.py b/fail2ban/tests/utils.py
index e674ee9b..8bcc1431 100644
--- a/fail2ban/tests/utils.py
+++ b/fail2ban/tests/utils.py
@@ -255,23 +255,6 @@ def with_alt_time(f):
return wrapper
-# backwards compatibility to python 2.6:
-if not hasattr(unittest, 'SkipTest'): # pragma: no cover
- class SkipTest(Exception):
- pass
- unittest.SkipTest = SkipTest
- _org_AddError = unittest._TextTestResult.addError
- def addError(self, test, err):
- if err[0] is SkipTest:
- if self.showAll:
- self.stream.writeln(str(err[1]))
- elif self.dots:
- self.stream.write('s')
- self.stream.flush()
- return
- _org_AddError(self, test, err)
- unittest._TextTestResult.addError = addError
-
def initTests(opts):
## if running from installer (setup.py):
if not opts: