mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Only run test_curses when sys.__stdout__ is a tty. This eliminates the
last false positive when running regrtest with -j.
This commit is contained in:
parent
c12781abcb
commit
d9f1944fc3
1 changed files with 2 additions and 0 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue