From: Sandro Tosi Date: Tue, 24 Apr 2012 16:39:24 +0000 (+0200) Subject: Issue #14554: correct example for captured_stdout(); patch by Tshepang Lekhonkhobe X-Git-Tag: v3.3.0a3~93^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3e29d93007f7ac8b96ddf0b4f925f9a9dfa06b30;p=thirdparty%2FPython%2Fcpython.git Issue #14554: correct example for captured_stdout(); patch by Tshepang Lekhonkhobe --- diff --git a/Doc/library/test.rst b/Doc/library/test.rst index 0185a0952534..40f4115ead00 100644 --- a/Doc/library/test.rst +++ b/Doc/library/test.rst @@ -362,7 +362,7 @@ The :mod:`test.support` module defines the following functions: with captured_stdout() as s: print("hello") - assert s.getvalue() == "hello" + assert s.getvalue() == "hello\n" .. function:: import_module(name, deprecated=False)