Fix backport of test_curses test skip.

This commit is contained in:
R. David Murray 2009-11-03 22:47:06 +00:00
parent 3e13bd6630
commit 0ae237bb45

View file

@ -270,7 +270,7 @@ if __name__ == '__main__':
unit_tests()
else:
if not sys.__stdout__.isatty():
raise unittest.SkipTest("sys.__stdout__ is not a tty")
raise TestSkipped("sys.__stdout__ is not a tty")
# testing setupterm() inside initscr/endwin
# causes terminal breakage
curses.setupterm(fd=sys.__stdout__.fileno())