]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-39983: Add test.support.print_warning() (GH-19683)
authorVictor Stinner <vstinner@python.org>
Thu, 23 Apr 2020 17:03:52 +0000 (19:03 +0200)
committerGitHub <noreply@github.com>
Thu, 23 Apr 2020 17:03:52 +0000 (19:03 +0200)
commitd663d34685e18588748569468c672763f4c73b3e
tree9d5dacf672a50135ef10efef37e3b51f20aac1ad
parent02e4484f19304a0a5f484f06a3fa441c6fb6073a
bpo-39983: Add test.support.print_warning() (GH-19683)

Log "Warning -- ..." test warnings into sys.__stderr__ rather than
sys.stderr, to ensure to display them even if sys.stderr is captured.

test.libregrtest.utils.print_warning() now calls
test.support.print_warning().
Doc/library/test.rst
Lib/test/_test_multiprocessing.py
Lib/test/libregrtest/runtest.py
Lib/test/libregrtest/utils.py
Lib/test/support/__init__.py
Lib/test/test_support.py