mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +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:
|
||||
print "hello"
|
||||
assert s.getvalue() == "hello"
|
||||
assert s.getvalue() == "hello\n"
|
||||
|
||||
.. versionadded:: 2.6
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue