Browse Source

fixed mixed indentation (spaces through tabs), duplicate code removed

pull/1483/head
sebres 9 years ago
parent
commit
06dcad7650
  1. 4
      bin/fail2ban-testcases
  2. 3
      fail2ban/tests/utils.py

4
bin/fail2ban-testcases

@ -122,7 +122,7 @@ if verbosity > 1: # pragma: no cover
if verbosity > 3:
fmt = ' | %(module)15.15s-%(levelno)-2d: %(funcName)-20.20s |' + fmt
if verbosity > 2:
fmt = ' +%(relativeCreated)5d %(thread)X %(levelname)-5.5s' + fmt
fmt = ' +%(relativeCreated)5d %(thread)X %(levelname)-5.5s' + fmt
else:
fmt = ' %(asctime)-15s %(thread)X %(levelname)-5.5s' + fmt
#
@ -134,7 +134,7 @@ logSys.addHandler(stdout)
#
if not opts.log_level or opts.log_level != 'critical': # pragma: no cover
print("Fail2ban %s test suite. Python %s. Please wait..." \
% (version, str(sys.version).replace('\n', '')))
% (version, str(sys.version).replace('\n', '')))
tests = gatherTests(regexps, opts)
#

3
fail2ban/tests/utils.py

@ -418,9 +418,6 @@ class LogCaptureTestCase(unittest.TestCase):
def pruneLog(self):
self._log.truncate(0)
def pruneLog(self):
self._log.truncate(0)
def getLog(self):
return self._log.getvalue()

Loading…
Cancel
Save