mirror of https://github.com/fail2ban/fail2ban
BF: remedy traceback testing case -- just check if called from fail2ban-testcases
parent
6a380139bd
commit
84e8ba698a
|
@ -140,7 +140,9 @@ class TestsUtilsTest(unittest.TestCase):
|
||||||
|
|
||||||
# if we run it through 'coverage' (e.g. on travis) then we
|
# if we run it through 'coverage' (e.g. on travis) then we
|
||||||
# would get a traceback
|
# would get a traceback
|
||||||
if 'coverage' in s:
|
if not ('fail2ban-testcases' in s):
|
||||||
|
# we must be calling it from setup or nosetests but using at least
|
||||||
|
# nose's core etc
|
||||||
self.assertTrue('>' in s, msg="no '>' in %r" % s)
|
self.assertTrue('>' in s, msg="no '>' in %r" % s)
|
||||||
else:
|
else:
|
||||||
self.assertFalse('>' in s, msg="'>' present in %r" % s) # There is only "fail2ban-testcases" in this case, no true traceback
|
self.assertFalse('>' in s, msg="'>' present in %r" % s) # There is only "fail2ban-testcases" in this case, no true traceback
|
||||||
|
|
Loading…
Reference in New Issue