]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-64308: Remove TestProgram from the unittest docs (GH-121675) (GH-121742)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 14 Jul 2024 09:41:08 +0000 (11:41 +0200)
committerGitHub <noreply@github.com>
Sun, 14 Jul 2024 09:41:08 +0000 (11:41 +0200)
(cherry picked from commit f6f4022a357f70f1c40945403065e81b6c2e4854)

Co-authored-by: Jan MusĂ­lek <jan.musilek@nic.cz>
Doc/library/unittest.rst

index eb42210e096ecb3236c4b507bd621f66a4a54948..dc76374d5181ebb3ad70234fc8ae8f26b3c4eb08 100644 (file)
@@ -2316,8 +2316,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.