From 2fda8364e399aa42a7c5419702bbec1445c4a19f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Mus=C3=ADlek?= Date: Sat, 13 Jul 2024 12:06:32 +0200 Subject: [PATCH 1/2] gh-64308: Remove TestProgram from the unittest docs --- Doc/library/unittest.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst index eb42210e096ecb..79e6cb5dc5f620 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. .. versionchanged:: 3.1 The *exit* parameter was added. From 4d8333ffd9283e767f55a6b33925f52402df85be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Mus=C3=ADlek?= Date: Sat, 13 Jul 2024 15:10:28 +0200 Subject: [PATCH 2/2] gh-64308: [CR] Reference unittest.TestResult --- Doc/library/unittest.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst index 79e6cb5dc5f620..dc76374d5181eb 100644 --- a/Doc/library/unittest.rst +++ b/Doc/library/unittest.rst @@ -2317,7 +2317,7 @@ Loading and running tests otherwise it will be set to ``'default'``. Calling ``main`` returns an object with the ``result`` attribute that contains - the result of the tests run. + the result of the tests run as a :class:`unittest.TestResult`. .. versionchanged:: 3.1 The *exit* parameter was added.