summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorR. David Murray <rdmurray@bitdance.com>2009-10-19 16:04:44 (GMT)
committerR. David Murray <rdmurray@bitdance.com>2009-10-19 16:04:44 (GMT)
commit09386446850b0ce3a5d59ff24ba4ccc3efd14a2b (patch)
tree5649e06ae75850f152d7c809d01fde8d8834dca8
parent2714460ac0126908782dde4f3afd27e5ce5dccd4 (diff)
downloadcpython-09386446850b0ce3a5d59ff24ba4ccc3efd14a2b.zip
cpython-09386446850b0ce3a5d59ff24ba4ccc3efd14a2b.tar.gz
cpython-09386446850b0ce3a5d59ff24ba4ccc3efd14a2b.tar.bz2
Note that on py3k we are actually looking at sys.stdout, not sys.__stdout__.
Merged revisions 75518 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r75518 | r.david.murray | 2009-10-19 12:01:28 -0400 (Mon, 19 Oct 2009) | 3 lines Only run test_curses when sys.__stdout__ is a tty. This eliminates the last false positive when running regrtest with -j. ........
-rw-r--r--Lib/test/test_curses.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_curses.py b/Lib/test/test_curses.py
index 2615ffb..9273ba8 100644
--- a/Lib/test/test_curses.py
+++ b/Lib/test/test_curses.py
@@ -275,6 +275,8 @@ def main(stdscr):
curses.resetty()
def test_main():
+ 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())