diff options
| author | Michael Foord <fuzzyman@voidspace.org.uk> | 2010-02-10 14:25:12 (GMT) |
|---|---|---|
| committer | Michael Foord <fuzzyman@voidspace.org.uk> | 2010-02-10 14:25:12 (GMT) |
| commit | db43b5a1f5a4b580b68fa0eef0d03d604d7f8805 (patch) | |
| tree | 4e8a140ec095adedd3e61d3087f934f3f682f739 /Lib/unittest/result.py | |
| parent | 42fb6ab49128f14cd353ec86a177ddda6763812e (diff) | |
| download | cpython-db43b5a1f5a4b580b68fa0eef0d03d604d7f8805.zip cpython-db43b5a1f5a4b580b68fa0eef0d03d604d7f8805.tar.gz cpython-db43b5a1f5a4b580b68fa0eef0d03d604d7f8805.tar.bz2 | |
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 3e32eb0..4538304 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. |
