mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
ENH: also print the failing traceback line in case of failure
Also to troubleshoot https://travis-ci.org/fail2ban/fail2ban/jobs/7112324
This commit is contained in:
parent
f345c4d7dc
commit
1b301d723d
1 changed files with 2 additions and 2 deletions
|
|
@ -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 a new issue