Issue #14554: correct example for captured_stdout()
diff --git a/Doc/library/test.rst b/Doc/library/test.rst
index 3e1e492..434ef5a 100644
--- a/Doc/library/test.rst
+++ b/Doc/library/test.rst
@@ -380,7 +380,7 @@
 
       with captured_stdout() as s:
           print "hello"
-      assert s.getvalue() == "hello"
+      assert s.getvalue() == "hello\n"
 
    .. versionadded:: 2.6