mirror of
https://github.com/python/cpython.git
synced 2025-11-26 13:22:51 +00:00
Issue #14554: correct example for captured_stdout()
This commit is contained in:
parent
3f0f5776cd
commit
466a5f20f1
1 changed files with 1 additions and 1 deletions
|
|
@ -380,7 +380,7 @@ The :mod:`test.test_support` module defines the following functions:
|
||||||
|
|
||||||
with captured_stdout() as s:
|
with captured_stdout() as s:
|
||||||
print "hello"
|
print "hello"
|
||||||
assert s.getvalue() == "hello"
|
assert s.getvalue() == "hello\n"
|
||||||
|
|
||||||
.. versionadded:: 2.6
|
.. versionadded:: 2.6
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue