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

berker.peksag at gmail.com berker.peksag at gmail.com
Sat Dec 6 17:31:20 CET 2014


LGTM.


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

http://bugs.python.org/review/22153/diff/13362/Doc/library/unittest.rst#newcode1561
Doc/library/unittest.rst:1561: A test case instance is created for each
method named by
This part does not apply to the correct place:

    $ hg imp --no-c http://bugs.python.org/file37372/runtest.patch
    applying http://bugs.python.org/file37372/runtest.patch
    patching file Doc/library/unittest.rst
    Hunk #2 succeeded at 1554 with fuzz 2 (offset -6 lines).
    applied to working directory

And here is the output of "hg diff":

    :class:`TestLoader` objects have the following attributes:
 
+      A test case instance is created for each method named by
+      :meth:`getTestCaseNames`. By default these are the method names
+      beginning with *test*. If :meth:`getTestCaseNames` returns no
methods,
+      but the :meth:`runTest` method is implemented, a single test case
is
+      created for that method instead.
 
    .. attribute:: errors

http://bugs.python.org/review/22153/diff/13362/Doc/library/unittest.rst#newcode1563
Doc/library/unittest.rst:1563: beginning with *test*. If
:meth:`getTestCaseNames` returns no methods,
*test* -> ``test``

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


More information about the docs mailing list