From 296a3f37e8285385ff6c1cf721f2168af6b91b62 Mon Sep 17 00:00:00 2001 From: Steven Hiscocks Date: Mon, 27 May 2013 22:34:02 +0100 Subject: [PATCH] TST: Fix TraceBack tests when running via "setup" --- fail2ban/tests/misctestcase.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fail2ban/tests/misctestcase.py b/fail2ban/tests/misctestcase.py index d2e2f02b..3f92063e 100644 --- a/fail2ban/tests/misctestcase.py +++ b/fail2ban/tests/misctestcase.py @@ -138,9 +138,9 @@ class TestsUtilsTest(unittest.TestCase): except ValueError: s = tb() - # if we run it through 'coverage' (e.g. on travis) then we - # would get a traceback - if 'coverage' in s: + # if we run it through 'setup' or 'coverage' (e.g. on travis) + # then we would get a traceback + if 'coverage' in s or 'setup' in s: self.assertTrue('>' in s, msg="no '>' in %r" % s) else: self.assertFalse('>' in s, msg="'>' present in %r" % s) # There is only "fail2ban-testcases" in this case, no true traceback