diff options
author | Sandro Tosi <sandro.tosi@gmail.com> | 2012-04-24 18:38:59 +0200 |
---|---|---|
committer | Sandro Tosi <sandro.tosi@gmail.com> | 2012-04-24 18:38:59 +0200 |
commit | 466a5f20f1b034146560a1753c15216d02186290 (patch) | |
tree | d78624b443e265d6d796ecb730400dae517d2adb | |
parent | 3f0f5776cdbd590571eb51825200d676ecd643ee (diff) | |
download | cpython-git-466a5f20f1b034146560a1753c15216d02186290.tar.gz |
Issue #14554: correct example for captured_stdout()
-rw-r--r-- | Doc/library/test.rst | 2 |
1 files changed, 1 insertions, 1 deletions
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 |