[docs] There is no standard TestCase.runTest implementation (issue 22153)

robertc at robertcollins.net robertc at robertcollins.net
Mon Nov 3 11:01:47 CET 2014


http://bugs.python.org/review/22153/diff/12734/Doc/library/unittest.rst
File Doc/library/unittest.rst (right):

http://bugs.python.org/review/22153/diff/12734/Doc/library/unittest.rst#newcode657
Doc/library/unittest.rst:657: In most uses of :class:`TestCase`, you
will neither change
On 2014/10/31 18:00:26, ezio.melotti wrote:
> This line is indented wrong.

I can fix this up at commit time.

http://bugs.python.org/review/22153/diff/12734/Doc/library/unittest.rst#newcode1561
Doc/library/unittest.rst:1561: If no methods with the usual name prefix
are found, but the ``runTest()`` method is implemented, there will be a
single test case using that method.
On 2014/10/31 18:00:26, ezio.melotti wrote:
> This line is too long, and also not too clear to me.
> What is the usual name prefix? "test_"?
> Does "a single test case" refers to *testCaseClass*?  What are test
cases should
> use runTest? What does "using" mean here?

TestClass('runTest') rather than TestClass('test_something'). It seems
clear enough to me, but I am probably too close to the implementation.
Do you have some suggested improvement to the prose?

The name prefix is indeed test_, but thats covered elsewhere I think.

http://bugs.python.org/review/22153/


More information about the docs mailing list