]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.9] bpo-42789: Don't skip curses tests on non-tty. (GH-24009) (GH-24076)
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 3 Jan 2021 20:54:44 +0000 (22:54 +0200)
committerGitHub <noreply@github.com>
Sun, 3 Jan 2021 20:54:44 +0000 (22:54 +0200)
commit0303008ebceb6ac6035cd9722d1393267304171d
tree4f254d0da928e53d98b7683c4a879c471cf0e2f9
parentbfc413ce4fa37ccb889757388102c7755e057bf5
[3.9] bpo-42789: Don't skip curses tests on non-tty. (GH-24009) (GH-24076)

If __stdout__ is not attached to terminal, try to use __stderr__
if it is attached to terminal, or open the terminal device, or
use regular file as terminal, but some functions will be untested
in the latter case.
(cherry picked from commit 607501abb488fb37e33cf9d35260ab7baefa192f)
Lib/test/test_curses.py