From 761e21ba507fa0d40509301b1f470944c8a4deb0 Mon Sep 17 00:00:00 2001 From: Robert Collins Date: Sun, 25 Oct 2009 16:05:49 +1100 Subject: Add details API support to the Stats result object. --- python/subunit/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'python/subunit/__init__.py') 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): -- cgit v1.2.1