From 3e29d93007f7ac8b96ddf0b4f925f9a9dfa06b30 Mon Sep 17 00:00:00 2001 From: Sandro Tosi Date: Tue, 24 Apr 2012 18:39:24 +0200 Subject: [PATCH] Issue #14554: correct example for captured_stdout(); patch by Tshepang Lekhonkhobe --- Doc/library/test.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/test.rst b/Doc/library/test.rst index 0185a095253..40f4115ead0 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)