Skip to content

Commit

Permalink
TST: Fix TraceBack tests when running via "setup"
Browse files Browse the repository at this point in the history
  • Loading branch information
kwirk committed May 27, 2013
1 parent e73b3dd commit 296a3f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fail2ban/tests/misctestcase.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,9 @@ def deep_function(i):
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
Expand Down

0 comments on commit 296a3f3

Please sign in to comment.