mirror of https://github.com/fail2ban/fail2ban
Exclude coverage traceback in smoke test (misctestcase)
parent
94bc77aac8
commit
675767ad4f
|
@ -155,8 +155,10 @@ class TestsUtilsTest(unittest.TestCase):
|
||||||
# we must be calling it from setup or nosetests but using at least
|
# we must be calling it from setup or nosetests but using at least
|
||||||
# nose's core etc
|
# nose's core etc
|
||||||
self.assertTrue('>' in s, msg="no '>' in %r" % s)
|
self.assertTrue('>' in s, msg="no '>' in %r" % s)
|
||||||
else:
|
elif not ('coverage' in s):
|
||||||
self.assertFalse('>' in s, msg="'>' present in %r" % s) # There is only "fail2ban-testcases" in this case, no true traceback
|
# There is only "fail2ban-testcases" in this case, no true traceback
|
||||||
|
self.assertFalse('>' in s, msg="'>' present in %r" % s)
|
||||||
|
|
||||||
self.assertTrue(':' in s, msg="no ':' in %r" % s)
|
self.assertTrue(':' in s, msg="no ':' in %r" % s)
|
||||||
|
|
||||||
def testFormatterWithTraceBack(self):
|
def testFormatterWithTraceBack(self):
|
||||||
|
|
Loading…
Reference in New Issue