]> granicus.if.org Git - python/commitdiff
Issue #14554: correct example for captured_stdout(); patch by Tshepang Lekhonkhobe
authorSandro Tosi <sandro.tosi@gmail.com>
Tue, 24 Apr 2012 16:39:24 +0000 (18:39 +0200)
committerSandro Tosi <sandro.tosi@gmail.com>
Tue, 24 Apr 2012 16:39:24 +0000 (18:39 +0200)
Doc/library/test.rst

index 0185a095253486b3fb0df620a014c0f19b8e09ca..40f4115ead00d19dcb206999722546c9f2083ec2 100644 (file)
@@ -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)