mirror of
https://github.com/python/cpython.git
synced 2025-08-17 15:21:26 +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()
|
unit_tests()
|
||||||
else:
|
else:
|
||||||
if not sys.__stdout__.isatty():
|
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
|
# testing setupterm() inside initscr/endwin
|
||||||
# causes terminal breakage
|
# causes terminal breakage
|
||||||
curses.setupterm(fd=sys.__stdout__.fileno())
|
curses.setupterm(fd=sys.__stdout__.fileno())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue