diff options
author | Michael Foord <michael@voidspace.org.uk> | 2013-12-29 23:38:55 (GMT) |
---|---|---|
committer | Michael Foord <michael@voidspace.org.uk> | 2013-12-29 23:38:55 (GMT) |
commit | 4d1639f4e5513945ac84ea5dbd242da6bb0f6058 (patch) | |
tree | 9bbf56b2ebfcb42a2ca10ede951dc94e0a6bafaa /Doc | |
parent | 2691ee61833f7f460b5f67795b232a9b6f4518d8 (diff) | |
download | cpython-4d1639f4e5513945ac84ea5dbd242da6bb0f6058.zip cpython-4d1639f4e5513945ac84ea5dbd242da6bb0f6058.tar.gz cpython-4d1639f4e5513945ac84ea5dbd242da6bb0f6058.tar.bz2 |
Closes issue 20031. Document unittest.TextTestRunner.run method.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/unittest.rst | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst index 6310624..46d303a 100644 --- a/Doc/library/unittest.rst +++ b/Doc/library/unittest.rst @@ -1939,6 +1939,14 @@ Loading and running tests stream, descriptions, verbosity + .. method:: run(test) + + This method is the main public interface to the `TextTestRunner`. This + method takes a :class:`TestSuite` or :class:`TestCase` instance. A + :class:`TestResult` is created by calling + :func:`_makeResult` and the test(s) are run and the + results printed to stdout. + .. function:: main(module='__main__', defaultTest=None, argv=None, testRunner=None, \ testLoader=unittest.defaultTestLoader, exit=True, verbosity=1, \ |