Issue #14554: correct example for captured_stdout(); patch by Tshepang Lekhonkhobe
diff --git a/Doc/library/test.rst b/Doc/library/test.rst
index 0185a09..40f4115 100644
--- a/Doc/library/test.rst
+++ b/Doc/library/test.rst
@@ -362,7 +362,7 @@
 
       with captured_stdout() as s:
           print("hello")
-      assert s.getvalue() == "hello"
+      assert s.getvalue() == "hello\n"
 
 
 .. function:: import_module(name, deprecated=False)