summaryrefslogtreecommitdiffstats
path: root/Doc/library/doctest.rst
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2012-10-10 14:49:02 (GMT)
committerGeorg Brandl <georg@python.org>2012-10-10 14:49:02 (GMT)
commita1ff83e556856cf80c4df3bffc52a1b330adbfa1 (patch)
tree665692630936f038b479deda1712a68667e83e99 /Doc/library/doctest.rst
parent5591b02a4c96c4b530ee024e6b1581f5ba72945d (diff)
parent3a2e101be564ffcb73dac708533d9178d90c2da8 (diff)
downloadcpython-a1ff83e556856cf80c4df3bffc52a1b330adbfa1.zip
cpython-a1ff83e556856cf80c4df3bffc52a1b330adbfa1.tar.gz
cpython-a1ff83e556856cf80c4df3bffc52a1b330adbfa1.tar.bz2
merge 3.2 heads
Diffstat (limited to 'Doc/library/doctest.rst')
-rw-r--r--Doc/library/doctest.rst7
1 files changed, 5 insertions, 2 deletions
diff --git a/Doc/library/doctest.rst b/Doc/library/doctest.rst
index ed53f06..ec8edbe 100644
--- a/Doc/library/doctest.rst
+++ b/Doc/library/doctest.rst
@@ -1,3 +1,5 @@
+:keepdoctest:
+
:mod:`doctest` --- Test interactive Python examples
===================================================
@@ -652,7 +654,7 @@ example. Use ``+`` to enable the named behavior, or ``-`` to disable it.
For example, this test passes::
- >>> print(list(range(20))) #doctest: +NORMALIZE_WHITESPACE
+ >>> print(list(range(20))) # doctest: +NORMALIZE_WHITESPACE
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9,
10, 11, 12, 13, 14, 15, 16, 17, 18, 19]
@@ -664,7 +666,8 @@ so::
>>> print(list(range(20))) # doctest: +ELLIPSIS
[0, 1, ..., 18, 19]
-Multiple directives can be used on a single physical line, separated by commas::
+Multiple directives can be used on a single physical line, separated by
+commas::
>>> print(list(range(20))) # doctest: +ELLIPSIS, +NORMALIZE_WHITESPACE
[0, 1, ..., 18, 19]