mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
Issue #14554: correct example for captured_stdout(); patch by Tshepang Lekhonkhobe
This commit is contained in:
parent
e6c3462607
commit
3e29d93007
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue