Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4c38059

Browse files
committed
Merged revisions 76448 via svnmerge from
svn+ssh://[email protected]/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. ........
1 parent 7344863 commit 4c38059

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/library/doctest.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ The fine print:
343343
>>> assert "Easy!"
344344
>>> import math
345345
>>> math.floor(1.9)
346-
1.0
346+
1
347347

348348
and as many leading whitespace characters are stripped from the expected output
349349
as appeared in the initial ``'>>> '`` line that started the example.

0 commit comments

Comments
 (0)