Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 901ea41 commit f6f4022Copy full SHA for f6f4022
1 file changed
Doc/library/unittest.rst
@@ -2316,8 +2316,8 @@ Loading and running tests
2316
(see :ref:`Warning control <using-on-warnings>`),
2317
otherwise it will be set to ``'default'``.
2318
2319
- Calling ``main`` actually returns an instance of the ``TestProgram`` class.
2320
- 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`.
2321
2322
.. versionchanged:: 3.1
2323
The *exit* parameter was added.
0 commit comments