summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorRobert Collins <robertc@robertcollins.net>2009-10-25 16:05:49 +1100
committerRobert Collins <robertc@robertcollins.net>2009-10-25 16:05:49 +1100
commit761e21ba507fa0d40509301b1f470944c8a4deb0 (patch)
treeabfedd44e080de8030ee3a1559673bf161a476d7 /python
parent29d060e97474b03b8f2ebd310d5f2361ba44de14 (diff)
downloadsubunit-git-761e21ba507fa0d40509301b1f470944c8a4deb0.tar.gz
Add details API support to the Stats result object.
Diffstat (limited to 'python')
-rw-r--r--python/subunit/__init__.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/python/subunit/__init__.py b/python/subunit/__init__.py
index b5c678c..c79ee0c 100644
--- a/python/subunit/__init__.py
+++ b/python/subunit/__init__.py
@@ -1067,13 +1067,13 @@ class TestResultStats(unittest.TestResult):
def total_tests(self):
return self.testsRun
- def addError(self, test, err):
+ def addError(self, test, err, details=None):
self.failed_tests += 1
- def addFailure(self, test, err):
+ def addFailure(self, test, err, details=None):
self.failed_tests += 1
- def addSkip(self, test, reason):
+ def addSkip(self, test, reason, details=None):
self.skipped_tests += 1
def formatStats(self):