]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-64308: Remove TestProgram from the unittest docs (GH-121675)
authorJan Musílek <jan.musilek@nic.cz>
Sun, 14 Jul 2024 08:57:12 +0000 (10:57 +0200)
committerGitHub <noreply@github.com>
Sun, 14 Jul 2024 08:57:12 +0000 (10:57 +0200)
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.