[issue11407] unittest.TestCase.run should return result
Jonathan Hartley
report at bugs.python.org
Mon Mar 14 20:41:41 CET 2011
Jonathan Hartley <tartley at tartley.com> added the comment:
Attached patch fixes this.
TestCase.run now returns its TestResult object, regardless of whether it was passed in or created internally. Test assertions added for this. Invoking an instance of TestCase already returned the return value of .run, so the result is correctly propagated. New test added that verifies that .__call__ delegates to .run.
Fix for an unrelated minor typo in the docs also bundled into this patch: Fixed the versionchanged:: markup for class TestCase.
This is my first patch submission, please help me out if I mess it up. Thanks.
----------
keywords: +patch
nosy: +tartley
Added file: http://bugs.python.org/file21131/issue11407.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11407>
_______________________________________
More information about the Python-bugs-list
mailing list