Show More
@@ -1067,8 +1067,8 b' class TestResult(unittest._TextTestResul' | |||||
1067 | # sense to map it into fail some day. |
|
1067 | # sense to map it into fail some day. | |
1068 | self.warned = [] |
|
1068 | self.warned = [] | |
1069 |
|
1069 | |||
1070 |
def addFailure(self, |
|
1070 | def addFailure(self, test, reason): | |
1071 | super(TestResult, self).addFailure(*args, **kwargs) |
|
1071 | self.failures.append((test, reason)) | |
1072 |
|
1072 | |||
1073 | if self._options.first: |
|
1073 | if self._options.first: | |
1074 | self.stop() |
|
1074 | self.stop() | |
@@ -1472,8 +1472,12 b' class TestRunner(object):' | |||||
1472 | result.addIgnore(self, str(e)) |
|
1472 | result.addIgnore(self, str(e)) | |
1473 | except WarnTest, e: |
|
1473 | except WarnTest, e: | |
1474 | result.addWarn(self, str(e)) |
|
1474 | result.addWarn(self, str(e)) | |
1475 | except self.failureException: |
|
1475 | except self.failureException, e: | |
1476 | result.addFailure(self, sys.exc_info()) |
|
1476 | # This differs from unittest in that we don't capture | |
|
1477 | # the stack trace. This is for historical reasons and | |||
|
1478 | # this decision could be revisted in the future, | |||
|
1479 | # especially for PythonTest instances. | |||
|
1480 | result.addFailure(self, str(e)) | |||
1477 | except Exception: |
|
1481 | except Exception: | |
1478 | result.addError(self, sys.exc_info()) |
|
1482 | result.addError(self, sys.exc_info()) | |
1479 | else: |
|
1483 | else: |
General Comments 0
You need to be logged in to leave comments.
Login now