Closes issue 11407. TestCase.run returns the result object used or created

This commit is contained in:
Michael Foord 2011-03-14 19:01:46 -04:00
parent ba3a978fc1
commit 1341bb0019
5 changed files with 49 additions and 7 deletions

View file

@ -469,7 +469,7 @@ class TestCase(object):
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: