summaryrefslogtreecommitdiffstats
path: root/Doc/library/doctest.rst
diff options
context:
space:
mode:
authorR. David Murray <rdmurray@bitdance.com>2009-11-23 03:14:51 (GMT)
committerR. David Murray <rdmurray@bitdance.com>2009-11-23 03:14:51 (GMT)
commit4c3805958fd55443266db80eddca5102729bcedd (patch)
treeff1d2299c7dfa9b4c817a09cd6e0d1f7dfb2e5de /Doc/library/doctest.rst
parent7344863c66607b88ead69e2c0042cc34f7ff3af7 (diff)
downloadcpython-4c3805958fd55443266db80eddca5102729bcedd.zip
cpython-4c3805958fd55443266db80eddca5102729bcedd.tar.gz
cpython-4c3805958fd55443266db80eddca5102729bcedd.tar.bz2
Merged revisions 76448 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r76448 | r.david.murray | 2009-11-22 22:13:23 -0500 (Sun, 22 Nov 2009) | 4 lines 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.