[Python-checkins] cpython (2.7): Issue #14554: correct example for captured_stdout()

sandro.tosi python-checkins at python.org
Tue Apr 24 18:41:34 CEST 2012


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


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /