mirror of
https://github.com/python/cpython.git
synced 2025-11-11 14:44:57 +00:00
gh-64308: Remove TestProgram from the unittest docs (GH-121675)
This commit is contained in:
parent
901ea411bf
commit
f6f4022a35
1 changed files with 2 additions and 2 deletions
|
|
@ -2316,8 +2316,8 @@ Loading and running tests
|
||||||
(see :ref:`Warning control <using-on-warnings>`),
|
(see :ref:`Warning control <using-on-warnings>`),
|
||||||
otherwise it will be set to ``'default'``.
|
otherwise it will be set to ``'default'``.
|
||||||
|
|
||||||
Calling ``main`` actually returns an instance of the ``TestProgram`` class.
|
Calling ``main`` returns an object with the ``result`` attribute that contains
|
||||||
This stores the result of the tests run as the ``result`` attribute.
|
the result of the tests run as a :class:`unittest.TestResult`.
|
||||||
|
|
||||||
.. versionchanged:: 3.1
|
.. versionchanged:: 3.1
|
||||||
The *exit* parameter was added.
|
The *exit* parameter was added.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue