Permalink
Browse files

Skip test if any error, so the rest of the tests can be run.

  • Loading branch information...
1 parent dacffaf commit 1565acbe4d438e1e65ecc68b2f75416dc2afd28c @jedie committed Jun 12, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 pylucid_project/tests/test_tools/test_runner.py
View
6 pylucid_project/tests/test_tools/test_runner.py
@@ -4,7 +4,7 @@
PyLucid project unittest runner
~~~~~~~~~~~~~~~~~~~~~~~~~~~
- :copyleft: 2009-2011 by the PyLucid team, see AUTHORS for more details.
+ :copyleft: 2009-2012 by the PyLucid team, see AUTHORS for more details.
:license: GNU GPL v3 or above, see LICENSE for more details.
"""
@@ -160,7 +160,9 @@ def build_suite(self, test_labels, extra_tests=None, **kwargs):
# Other error than "no tests available"
raise
if self.verbosity >= 2:
- print "Skip %r: %s" % (test_name, err)
+ print "Skip %r, ok. (%s)" % (test_name, err)
+ except Exception, err:
+ print "*** Error in %r: %s" % (test_name, err)
else:
self.print_verbose_info(tests, test_name)
test_suite.addTest(tests)

0 comments on commit 1565acb

Please sign in to comment.