mirror of
https://github.com/python/cpython.git
synced 2025-08-15 22:30:42 +00:00
Fix backport of test_curses test skip.
This commit is contained in:
parent
3e13bd6630
commit
0ae237bb45
1 changed files with 1 additions and 1 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue