]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.8] [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 22:54:13 +0000 (00:54 +0200)
committerGitHub <noreply@github.com>
Sun, 3 Jan 2021 22:54:13 +0000 (00:54 +0200)
commit645174abe0d13cce2cb339cc80b095ad484428ea
treeb68cdb00b800066e6f7585e233aac61f5cbd9360
parent2e8b1c9e9b2d2e011bf35f77cd611843bac7f3dd
[3.8] [3.9] bpo-42789: Don't skip curses tests on non-tty. (GH-24009) (GH-24076) (GH-24078)

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)
(cherry picked from commit 0303008ebceb6ac6035cd9722d1393267304171d)
Lib/test/test_curses.py