mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
TST: Fix TraceBack tests when running via "setup"
This commit is contained in:
parent
e73b3dd53e
commit
296a3f37e8
1 changed files with 3 additions and 3 deletions
|
|
@ -138,9 +138,9 @@ class TestsUtilsTest(unittest.TestCase):
|
|||
except ValueError:
|
||||
s = tb()
|
||||
|
||||
# if we run it through 'coverage' (e.g. on travis) then we
|
||||
# would get a traceback
|
||||
if 'coverage' in s:
|
||||
# if we run it through 'setup' or 'coverage' (e.g. on travis)
|
||||
# then we would get a traceback
|
||||
if 'coverage' in s or 'setup' in s:
|
||||
self.assertTrue('>' in s, msg="no '>' in %r" % s)
|
||||
else:
|
||||
self.assertFalse('>' in s, msg="'>' present in %r" % s) # There is only "fail2ban-testcases" in this case, no true traceback
|
||||
|
|
|
|||
Loading…
Reference in a new issue