[3.12] gh-64308: Remove TestProgram from the unittest docs (GH-121675) (GH-121743)

gh-64308: Remove TestProgram from the unittest docs (GH-121675)
(cherry picked from commit f6f4022a35)

Co-authored-by: Jan Musílek <jan.musilek@nic.cz>
This commit is contained in:
Miss Islington (bot) 2024-07-18 15:27:01 +02:00 committed by GitHub
parent 1d915aaf5c
commit f88ec9a203
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View 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.