Commit 24cc9ed9 authored by Julien Muchembled's avatar Julien Muchembled

Make unexpected successes more visible

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@39999 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 872157d4
......@@ -253,6 +253,10 @@ class _TextTestResult(unittest._TextTestResult, TestResult):
# and we do not display them here.
self.printErrorList('ERROR', filter(None, self.errors))
self.printErrorList('FAIL', self.failures)
if self.unexpectedSuccesses:
self.stream.writeln(self.separator1)
for test in self.unexpectedSuccesses:
self.stream.writeln("SUCCESS: %s" % self.getDescription(test))
class TextTestRunner(unittest.TextTestRunner):
def _makeResult(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment