From 466a5f20f1b034146560a1753c15216d02186290 Mon Sep 17 00:00:00 2001 From: Sandro Tosi Date: Tue, 24 Apr 2012 18:38:59 +0200 Subject: [PATCH] Issue #14554: correct example for captured_stdout() --- 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 3e1e492cf3..434ef5ad09 100644 --- a/Doc/library/test.rst +++ b/Doc/library/test.rst @@ -380,7 +380,7 @@ The :mod:`test.test_support` module defines the following functions: with captured_stdout() as s: print "hello" - assert s.getvalue() == "hello" + assert s.getvalue() == "hello\n" .. versionadded:: 2.6 -- 2.50.0