summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan MusĂ­lek <jan.musilek@nic.cz>2024-07-14 08:57:12 (GMT)
committerGitHub <noreply@github.com>2024-07-14 08:57:12 (GMT)
commitf6f4022a357f70f1c40945403065e81b6c2e4854 (patch)
treec6b0a5da73bd0cb87a527caf4ea5e7de562e1d12
parent901ea411bf51f59f2a4b0b4fec6f60d29c76ca05 (diff)
downloadcpython-f6f4022a357f70f1c40945403065e81b6c2e4854.zip
cpython-f6f4022a357f70f1c40945403065e81b6c2e4854.tar.gz
cpython-f6f4022a357f70f1c40945403065e81b6c2e4854.tar.bz2
gh-64308: Remove TestProgram from the unittest docs (GH-121675)
-rw-r--r--Doc/library/unittest.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst
index eb42210..dc76374 100644
--- a/Doc/library/unittest.rst
+++ b/Doc/library/unittest.rst
@@ -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.