[issue11407] unittest.TestCase.run should return result

2011-03-14 Thread Jonathan Hartley

Jonathan Hartley tart...@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 rep...@bugs.python.org
http://bugs.python.org/issue11407
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11407] unittest.TestCase.run should return result

2011-03-14 Thread Roundup Robot

Roundup Robot devnull@devnull added the comment:

New changeset b0b7d1d2354c by Michael Foord in branch 'default':
Closes issue 11407. TestCase.run returns the result object used or created
http://hg.python.org/cpython/rev/b0b7d1d2354c

--
nosy: +python-dev
resolution:  - fixed
stage:  - committed/rejected
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11407
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11407] unittest.TestCase.run should return result

2011-03-05 Thread Michael Foord

New submission from Michael Foord mich...@voidspace.org.uk:

If you call TestCase.run without an argument it will create a default 
TestResult and use it to execute the test. It should return the result so that 
you can introspect it.

--
assignee: michael.foord
messages: 130120
nosy: michael.foord
priority: normal
severity: normal
status: open
title: unittest.TestCase.run should return result
type: behavior
versions: Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11407
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11407] unittest.TestCase.run should return result

2011-03-05 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
nosy: +ezio.melotti

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11407
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com