[Python-checkins] cpython (3.2): Issue #14554: correct example for captured_stdout(); patch by Tshepang

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


http://hg.python.org/cpython/rev/d1ba0421d65f
changeset:   76528:d1ba0421d65f
branch:      3.2
parent:      76525:8165b59a4000
user:        Sandro Tosi <sandro.tosi at gmail.com>
date:        Tue Apr 24 18:39:24 2012 +0200
summary:
  Issue #14554: correct example for captured_stdout(); patch by Tshepang Lekhonkhobe

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
@@ -362,7 +362,7 @@
 
       with captured_stdout() as s:
           print("hello")
-      assert s.getvalue() == "hello"
+      assert s.getvalue() == "hello\n"
 
 
 .. function:: import_module(name, deprecated=False)

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list