Skip to content

Commit f88ec9a

Browse files
[3.12] gh-64308: Remove TestProgram from the unittest docs (GH-121675) (GH-121743)
gh-64308: Remove TestProgram from the unittest docs (GH-121675) (cherry picked from commit f6f4022) Co-authored-by: Jan Musílek <jan.musilek@nic.cz>
1 parent 1d915aa commit f88ec9a

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
@@ -2308,8 +2308,8 @@ Loading and running tests
23082308
(see :ref:`Warning control <using-on-warnings>`),
23092309
otherwise it will be set to ``'default'``.
23102310

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

23142314
.. versionchanged:: 3.1
23152315
The *exit* parameter was added.

0 commit comments

Comments
 (0)