commit | 1341bb0019868345bab8adff94263c81e1d66eae | [log] [tgz] |
---|---|---|
author | Michael Foord <michael@python.org> | Mon Mar 14 19:01:46 2011 -0400 |
committer | Michael Foord <michael@python.org> | Mon Mar 14 19:01:46 2011 -0400 |
tree | 95af5b839e2972aa3d678484da0c2eac95fb2f69 | |
parent | ba3a978fc1b877bd61602e6997d960a98e474311 [diff] [blame] |
Closes issue 11407. TestCase.run returns the result object used or created
diff --git a/Lib/unittest/case.py b/Lib/unittest/case.py index 270e5e8..4e47707 100644 --- a/Lib/unittest/case.py +++ b/Lib/unittest/case.py
@@ -469,7 +469,7 @@ warnings.warn("TestResult has no addExpectedFailure method, reporting as passes", RuntimeWarning) result.addSuccess(self) - + return result finally: result.stopTest(self) if orig_result is None: