mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Issue #12669: Fix test_curses so that it can run on the buildbots.
This commit is contained in:
parent
3bf71c54d8
commit
780199e6a3
1 changed files with 3 additions and 3 deletions
|
@ -276,11 +276,11 @@ def main(stdscr):
|
|||
curses.resetty()
|
||||
|
||||
def test_main():
|
||||
if not sys.stdout.isatty():
|
||||
raise unittest.SkipTest("sys.stdout is not a tty")
|
||||
if not sys.__stdout__.isatty():
|
||||
raise unittest.SkipTest("sys.__stdout__ is not a tty")
|
||||
# testing setupterm() inside initscr/endwin
|
||||
# causes terminal breakage
|
||||
curses.setupterm(fd=sys.stdout.fileno())
|
||||
curses.setupterm(fd=sys.__stdout__.fileno())
|
||||
try:
|
||||
stdscr = curses.initscr()
|
||||
main(stdscr)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue