mirror of https://github.com/fail2ban/fail2ban
ENH: also print the failing traceback line in case of failure
Also to troubleshoot https://travis-ci.org/fail2ban/fail2ban/jobs/7112324pull/227/head
parent
f345c4d7dc
commit
1b301d723d
|
@ -133,8 +133,8 @@ class TestsUtilsTest(unittest.TestCase):
|
|||
print deep_function(3)
|
||||
except ValueError:
|
||||
s = tb()
|
||||
self.assertFalse('>' in s) # There is only "fail2ban-testcases" in this case, no true traceback
|
||||
self.assertTrue(':' in s)
|
||||
self.assertFalse('>' in s, msg="'>' present in %r" % s) # There is only "fail2ban-testcases" in this case, no true traceback
|
||||
self.assertTrue(':' in s, msg="no ':' in %r" % s)
|
||||
|
||||
|
||||
def testFormatterWithTraceBack(self):
|
||||
|
|
Loading…
Reference in New Issue