summaryrefslogtreecommitdiffstats
path: root/Doc/library/doctest.rst
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-01-11 09:55:53 (GMT)
committerGeorg Brandl <georg@python.org>2008-01-11 09:55:53 (GMT)
commite3c3db59b522d18ed60b1e7b0be7d8e9eeec41a7 (patch)
treecd848e76f0b7bb28db9263c5fdd9340e61046a5e /Doc/library/doctest.rst
parent2f32c39227e70215c9d9e8e4e50cb1227fc083d1 (diff)
downloadcpython-e3c3db59b522d18ed60b1e7b0be7d8e9eeec41a7.zip
cpython-e3c3db59b522d18ed60b1e7b0be7d8e9eeec41a7.tar.gz
cpython-e3c3db59b522d18ed60b1e7b0be7d8e9eeec41a7.tar.bz2
Documentation for r5990[3567].
Diffstat (limited to 'Doc/library/doctest.rst')
-rw-r--r--Doc/library/doctest.rst5
1 files changed, 4 insertions, 1 deletions
diff --git a/Doc/library/doctest.rst b/Doc/library/doctest.rst
index a231bb4..110411f 100644
--- a/Doc/library/doctest.rst
+++ b/Doc/library/doctest.rst
@@ -1506,11 +1506,14 @@ DocTestRunner objects
.. method:: DocTestRunner.summarize([verbose])
Print a summary of all the test cases that have been run by this DocTestRunner,
- and return a tuple ``(failure_count, test_count)``.
+ and return a :term:`named tuple` ``TestResults(failed, attempted)``.
The optional *verbose* argument controls how detailed the summary is. If the
verbosity is not specified, then the :class:`DocTestRunner`'s verbosity is used.
+ .. versionchanged:: 2.6
+ Use a named tuple.
+
.. _doctest-outputchecker: