From: Jan MusĂ­lek Date: Sun, 14 Jul 2024 08:57:12 +0000 (+0200) Subject: gh-64308: Remove TestProgram from the unittest docs (GH-121675) X-Git-Tag: v3.14.0a1~1144 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f6f4022a357f70f1c40945403065e81b6c2e4854;p=thirdparty%2FPython%2Fcpython.git gh-64308: Remove TestProgram from the unittest docs (GH-121675) --- diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst index eb42210e096e..dc76374d5181 100644 --- a/Doc/library/unittest.rst +++ b/Doc/library/unittest.rst @@ -2316,8 +2316,8 @@ Loading and running tests (see :ref:`Warning control `), 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.