mirror of https://github.com/python/cpython
Issue #14554: correct example for captured_stdout()
This commit is contained in:
parent
3f0f5776cd
commit
466a5f20f1
|
@ -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…
Reference in New Issue