]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] gh-64308: Remove TestProgram from the unittest docs (GH-121675) (GH-121743)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 18 Jul 2024 13:27:01 +0000 (15:27 +0200)
committerGitHub <noreply@github.com>
Thu, 18 Jul 2024 13:27:01 +0000 (15:27 +0200)
gh-64308: Remove TestProgram from the unittest docs (GH-121675)
(cherry picked from commit f6f4022a357f70f1c40945403065e81b6c2e4854)

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

index 68a8ddee0f23f4460cb2256a0435f37438f0d9df..b9ba2c21cc8c0c51cf940c12c25f651cea8fdcef 100644 (file)
@@ -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.