summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorSandro Tosi <sandro.tosi@gmail.com>2012-04-24 16:39:24 (GMT)
committerSandro Tosi <sandro.tosi@gmail.com>2012-04-24 16:39:24 (GMT)
commit3e29d93007f7ac8b96ddf0b4f925f9a9dfa06b30 (patch)
treee7b584ee685f8c67ca693d1ae3e1f005d7d8d406 /Doc
parente6c34626073c905f072e7e2910d4d75c95668c10 (diff)
downloadcpython-3e29d93007f7ac8b96ddf0b4f925f9a9dfa06b30.zip
cpython-3e29d93007f7ac8b96ddf0b4f925f9a9dfa06b30.tar.gz
cpython-3e29d93007f7ac8b96ddf0b4f925f9a9dfa06b30.tar.bz2
Issue #14554: correct example for captured_stdout(); patch by Tshepang Lekhonkhobe
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/test.rst2
1 files changed, 1 insertions, 1 deletions
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 @@ 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)