Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3e29d93

Browse files
committed
Issue #14554: correct example for captured_stdout(); patch by Tshepang Lekhonkhobe
1 parent e6c3462 commit 3e29d93

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/library/test.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ The :mod:`test.support` module defines the following functions:
362362

363363
with captured_stdout() as s:
364364
print("hello")
365-
assert s.getvalue() == "hello"
365+
assert s.getvalue() == "hello\n"
366366

367367

368368
.. function:: import_module(name, deprecated=False)

0 commit comments

Comments
 (0)