R. David Murray <rdmur...@bitdance.com> added the comment:

Yes, running individual tests has already been implemented as part of unittest 
(where it belongs):

./python -m unittest test.test_httpservers.BaseHTTPServerTestCase.test_handler
.
----------------------------------------------------------------------
Ran 1 test in 0.102s

OK

The 'TestCase' marks classes that are actually test cases rather than helper 
classes, and test_ is how unittest determines which methods are test methods 
and which are support methods.  These strings are not fixed from test file to 
test file, so it is necessary to specify the full name (and should be).

the --list option that prints the test name in a cut and paste friendly fashion 
is somewhat interesting, perhaps you could open a new issue to propose adding 
that to unittest.  If you do open an issue, make michael.foord nosy on it.

----------
nosy: +r.david.murray
resolution:  -> out of date
stage:  -> committed/rejected
status: open -> closed
type:  -> feature request

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue9028>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to