diff options
author | Michael Foord <fuzzyman@voidspace.org.uk> | 2010-02-10 15:51:42 +0000 |
---|---|---|
committer | Michael Foord <fuzzyman@voidspace.org.uk> | 2010-02-10 15:51:42 +0000 |
commit | 1c3abceb621a29277717722f99777d9a062a416b (patch) | |
tree | 9584d3385c5885b18876fd658d79182c817300a8 /Lib/unittest/result.py | |
parent | 0f2c1e79285cfdbe3e0609f950932ab385fa4305 (diff) | |
download | cpython-1c3abceb621a29277717722f99777d9a062a416b.tar.gz |
Merged revisions 78130 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r78130 | michael.foord | 2010-02-10 14:25:12 +0000 (Wed, 10 Feb 2010) | 1 line
Issue 7893 and Issue 7588
........
Diffstat (limited to 'Lib/unittest/result.py')
-rw-r--r-- | Lib/unittest/result.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/unittest/result.py b/Lib/unittest/result.py index 3e32eb0163..4538304908 100644 --- a/Lib/unittest/result.py +++ b/Lib/unittest/result.py @@ -27,7 +27,7 @@ class TestResult(object): def startTest(self, test): "Called when the given test is about to be run" - self.testsRun = self.testsRun + 1 + self.testsRun += 1 def startTestRun(self): """Called once before any tests are executed. @@ -36,8 +36,7 @@ class TestResult(object): """ def stopTest(self, test): - "Called when the given test has been run" - pass + """Called when the given test has been run""" def stopTestRun(self): """Called once after all tests are executed. |