mirror of
https://github.com/python/cpython.git
synced 2025-07-31 07:04:42 +00:00
Closes issue 20031. Document unittest.TextTestRunner.run method.
This commit is contained in:
parent
2691ee6183
commit
4d1639f4e5
1 changed files with 8 additions and 0 deletions
|
@ -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, \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue