]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-39983: Add test.support.print_warning() (GH-19683) (GH-19687)
authorVictor Stinner <vstinner@python.org>
Thu, 23 Apr 2020 21:55:07 +0000 (23:55 +0200)
committerGitHub <noreply@github.com>
Thu, 23 Apr 2020 21:55:07 +0000 (23:55 +0200)
commit3340b2a61b458e7087c8c5fea063b1b45e1a4a07
tree47d2978bd199b661db00d2b0c21427aef6d9aac3
parent714aa832a599a04cb37667d89cb48459661ae6da
bpo-39983: Add test.support.print_warning() (GH-19683) (GH-19687)

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().

(cherry picked from commit d663d34685e18588748569468c672763f4c73b3e)
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