diff options
| author | Robert Collins <robertc@robertcollins.net> | 2011-05-23 22:01:39 +1200 |
|---|---|---|
| committer | Robert Collins <robertc@robertcollins.net> | 2011-05-23 22:01:39 +1200 |
| commit | dc1985ebe6751f309abd605a14c3fddb0b2600b9 (patch) | |
| tree | e816b123afdbbc00d05ec84f814ed14043804931 /python | |
| parent | bd71cf5f64f746a4d49d263b363668b6327ee12c (diff) | |
| download | subunit-git-dc1985ebe6751f309abd605a14c3fddb0b2600b9.tar.gz | |
* ``subunit-ls`` should handle the new test outcomes in Python2.7 better.
(Robert Collins, #785953)
Diffstat (limited to 'python')
| -rw-r--r-- | python/subunit/test_results.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/python/subunit/test_results.py b/python/subunit/test_results.py index fd54b00..9f64544 100644 --- a/python/subunit/test_results.py +++ b/python/subunit/test_results.py @@ -455,6 +455,16 @@ class TestIdPrintingResult(testtools.TestResult): def addSuccess(self, test): self._test = test + def addSkip(self, test, reason=None, details=None): + self._test = test + + def addUnexpectedSuccess(self, test, details=None): + self.failed_tests += 1 + self._test = test + + def addExpectedFailure(self, test, err=None, details=None): + self._test = test + def reportTest(self, test, duration): if self.show_times: seconds = duration.seconds |
