Skip to content

Commit 35d425e

Browse files
[3.13] gh-64308: Remove TestProgram from the unittest docs (GH-121675) (GH-121742)
(cherry picked from commit f6f4022) Co-authored-by: Jan Musílek <[email protected]>
1 parent e28f863 commit 35d425e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/unittest.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2316,8 +2316,8 @@ Loading and running tests
23162316
(see :ref:`Warning control <using-on-warnings>`),
23172317
otherwise it will be set to ``'default'``.
23182318

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

23222322
.. versionchanged:: 3.1
23232323
The *exit* parameter was added.

0 commit comments

Comments
 (0)