]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-42789: Don't skip curses tests on non-tty. (GH-24009)
authorSerhiy Storchaka <storchaka@gmail.com>
Sat, 2 Jan 2021 17:35:15 +0000 (19:35 +0200)
committerGitHub <noreply@github.com>
Sat, 2 Jan 2021 17:35:15 +0000 (19:35 +0200)
commit607501abb488fb37e33cf9d35260ab7baefa192f
tree700275b87e2b0cd7d0489f9de5440168dbdad890
parenta25011be8c6f62cb3333903befe6295d57f0bd30
bpo-42789: Don't skip curses tests on non-tty. (GH-24009)

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.
Lib/test/test_curses.py