Issue #14554: correct example for captured_stdout(); patch by Tshepang Lekhonkhobe
This commit is contained in:
parent
e6c3462607
commit
3e29d93007
@ -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…
x
Reference in New Issue
Block a user