mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Closes issue 11407. TestCase.run returns the result object used or created
This commit is contained in:
parent
ba3a978fc1
commit
1341bb0019
5 changed files with 49 additions and 7 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue