Commit 5b34625b authored by Tim Peters's avatar Tim Peters

_handle_problem(): If -p is passed, unittest displayed "OK"

at the end even if there were test failures and/or errors, and
didn't display any failure/error tracebacks at the end.  Now it
reports failures/errors at the end the same as when -p isn't
passed.
parent c7ec2c98
......@@ -278,8 +278,7 @@ class ImmediateTestResult(unittest._TextTestResult):
elif self.dots:
self.stream.write(prefix[0])
if not self._progress:
errlist.append((test, tb))
errlist.append((test, tb))
def startTest(self, test):
if self._progress:
......
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