diff --git a/Doc/library/test.rst b/Doc/library/test.rst index 3e1e492cf3c..434ef5ad094 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