diff options
author | R. David Murray <rdmurray@bitdance.com> | 2009-10-19 16:01:28 (GMT) |
---|---|---|
committer | R. David Murray <rdmurray@bitdance.com> | 2009-10-19 16:01:28 (GMT) |
commit | d9f1944fc30510e8c4f8c159602d202a5f2293f6 (patch) | |
tree | 8f2e865e22e22285c5b2c7cadcd75beb7dfea3d6 /Lib/test | |
parent | c12781abcba0ff9ff5f6f7af807634ea4bc49e49 (diff) | |
download | cpython-d9f1944fc30510e8c4f8c159602d202a5f2293f6.zip cpython-d9f1944fc30510e8c4f8c159602d202a5f2293f6.tar.gz cpython-d9f1944fc30510e8c4f8c159602d202a5f2293f6.tar.bz2 |
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')
-rw-r--r-- | Lib/test/test_curses.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_curses.py b/Lib/test/test_curses.py index 2f7c04c..4142282 100644 --- a/Lib/test/test_curses.py +++ b/Lib/test/test_curses.py @@ -276,6 +276,8 @@ if __name__ == '__main__': curses.wrapper(main) unit_tests() else: + 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()) |