summaryrefslogtreecommitdiffstats
path: root/Doc/library/doctest.rst
diff options
context:
space:
mode:
authorR. David Murray <rdmurray@bitdance.com>2009-11-23 03:13:23 (GMT)
committerR. David Murray <rdmurray@bitdance.com>2009-11-23 03:13:23 (GMT)
commit7c5714f78cc384deb696f48a02c015f6e492d403 (patch)
treeec7d38b5fb29c7755074a5a4318080af907c020a /Doc/library/doctest.rst
parent9520a430efb88e129f6c416b8f65c56fec884ecd (diff)
downloadcpython-7c5714f78cc384deb696f48a02c015f6e492d403.zip
cpython-7c5714f78cc384deb696f48a02c015f6e492d403.tar.gz
cpython-7c5714f78cc384deb696f48a02c015f6e492d403.tar.bz2
Update example in doctest chapter that uses math.floor to reflect the
fact that the result is an int in py3k. Thanks to 'flox' for pointing out the discrepancy.
Diffstat (limited to 'Doc/library/doctest.rst')
-rw-r--r--Doc/library/doctest.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/doctest.rst b/Doc/library/doctest.rst
index 2aa3ae1..4952e05 100644
--- a/Doc/library/doctest.rst
+++ b/Doc/library/doctest.rst
@@ -343,7 +343,7 @@ The fine print:
>>> assert "Easy!"
>>> import math
>>> math.floor(1.9)
- 1.0
+ 1
and as many leading whitespace characters are stripped from the expected output
as appeared in the initial ``'>>> '`` line that started the example.