summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_curses.py
diff options
context:
space:
mode:
authorR. David Murray <rdmurray@bitdance.com>2009-10-25 22:54:02 (GMT)
committerR. David Murray <rdmurray@bitdance.com>2009-10-25 22:54:02 (GMT)
commitaa9f3d3dfbc650eadea253462986ab9ae76d2080 (patch)
treef18c0c0b68d2c1ea6a9a0f1f78eb1377e845bcb6 /Lib/test/test_curses.py
parent3df09995a324159538d592b1c4133cb38ba59e16 (diff)
downloadcpython-aa9f3d3dfbc650eadea253462986ab9ae76d2080.zip
cpython-aa9f3d3dfbc650eadea253462986ab9ae76d2080.tar.gz
cpython-aa9f3d3dfbc650eadea253462986ab9ae76d2080.tar.bz2
Merged revisions 75519 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k regrtest -j support wasn't backported to 3.1, but in 3.1 regrtest itself captures stdout, so doing this skip is needed. ................ r75519 | r.david.murray | 2009-10-19 12:04:44 -0400 (Mon, 19 Oct 2009) | 12 lines 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. ........ ................
Diffstat (limited to 'Lib/test/test_curses.py')
-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())