Skip to content

Commit

Permalink
[3.12] gh-64308: Remove TestProgram from the unittest docs (GH-121675) (
Browse files Browse the repository at this point in the history
GH-121743)

gh-64308: Remove TestProgram from the unittest docs (GH-121675)
(cherry picked from commit f6f4022)

Co-authored-by: Jan Musílek <[email protected]>
  • Loading branch information
miss-islington and stinovlas authored Jul 18, 2024
1 parent 1d915aa commit f88ec9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Doc/library/unittest.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2308,8 +2308,8 @@ Loading and running tests
(see :ref:`Warning control <using-on-warnings>`),
otherwise it will be set to ``'default'``.

Calling ``main`` actually returns an instance of the ``TestProgram`` class.
This stores the result of the tests run as the ``result`` attribute.
Calling ``main`` returns an object with the ``result`` attribute that contains
the result of the tests run as a :class:`unittest.TestResult`.

.. versionchanged:: 3.1
The *exit* parameter was added.
Expand Down

0 comments on commit f88ec9a

Please sign in to comment.