http://hg.python.org/cpython/rev/22767284de99 changeset: 76527:22767284de99 branch: 2.7 parent: 76524:86b927859155 user: Sandro Tosi <sandro.tosi at gmail.com> date: Tue Apr 24 18:38:59 2012 +0200 summary: Issue #14554: correct example for captured_stdout() files: Doc/library/test.rst | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/Doc/library/test.rst b/Doc/library/test.rst --- a/Doc/library/test.rst +++ b/Doc/library/test.rst @@ -380,7 +380,7 @@ with captured_stdout() as s: print "hello" - assert s.getvalue() == "hello" + assert s.getvalue() == "hello\n" .. versionadded:: 2.6 -- Repository URL: http://hg.python.org/cpython