Commit 780199e6 authored by Nadeem Vawda's avatar Nadeem Vawda

Issue #12669: Fix test_curses so that it can run on the buildbots.

parent 3bf71c54
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment