From 1b301d723d4b2b8e66ca083d62645d60ec5d264e Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Sun, 12 May 2013 23:27:32 -0400 Subject: [PATCH] ENH: also print the failing traceback line in case of failure Also to troubleshoot https://travis-ci.org/fail2ban/fail2ban/jobs/7112324 --- testcases/misctestcase.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testcases/misctestcase.py b/testcases/misctestcase.py index c63d4cae..d63f8afc 100644 --- a/testcases/misctestcase.py +++ b/testcases/misctestcase.py @@ -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):