TST: Fix TraceBack tests when running via "setup"

pull/236/merge
Steven Hiscocks 2013-05-27 22:34:02 +01:00
parent e73b3dd53e
commit 296a3f37e8
1 changed files with 3 additions and 3 deletions

View File

@ -138,9 +138,9 @@ class TestsUtilsTest(unittest.TestCase):
except ValueError: except ValueError:
s = tb() s = tb()
# if we run it through 'coverage' (e.g. on travis) then we # if we run it through 'setup' or 'coverage' (e.g. on travis)
# would get a traceback # then we would get a traceback
if 'coverage' in s: if 'coverage' in s or 'setup' in s:
self.assertTrue('>' in s, msg="no '>' in %r" % s) self.assertTrue('>' in s, msg="no '>' in %r" % s)
else: else:
self.assertFalse('>' in s, msg="'>' present in %r" % s) # There is only "fail2ban-testcases" in this case, no true traceback self.assertFalse('>' in s, msg="'>' present in %r" % s) # There is only "fail2ban-testcases" in this case, no true traceback