[Python-checkins] cpython: Issue #12669: Fix test_curses so that it can run on the buildbots.
nadeem.vawda
python-checkins at python.org
Sat Aug 13 15:45:46 CEST 2011
http://hg.python.org/cpython/rev/4358909ee221
changeset: 71859:4358909ee221
user: Nadeem Vawda <nadeem.vawda at gmail.com>
date: Sat Aug 13 15:43:49 2011 +0200
summary:
Issue #12669: Fix test_curses so that it can run on the buildbots.
files:
Lib/test/test_curses.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Lib/test/test_curses.py b/Lib/test/test_curses.py
--- a/Lib/test/test_curses.py
+++ b/Lib/test/test_curses.py
@@ -276,11 +276,11 @@
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)
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list