diff options
-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 2615ffb1cb..9273ba8311 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()) |