From: Nadeem Vawda Date: Sat, 13 Aug 2011 13:43:49 +0000 (+0200) Subject: Issue #12669: Fix test_curses so that it can run on the buildbots. X-Git-Tag: v3.3.0a1~1699 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=780199e6a367a98e98ff69750ad24916a0888b9f;p=thirdparty%2FPython%2Fcpython.git Issue #12669: Fix test_curses so that it can run on the buildbots. --- diff --git a/Lib/test/test_curses.py b/Lib/test/test_curses.py index b9ff34644b6b..c767e9388f62 100644 --- a/Lib/test/test_curses.py +++ b/Lib/test/test_curses.py @@ -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)