mirror of https://github.com/python/cpython
Temporary skip curses tests on non-tty (issue #27067).
This commit is contained in:
parent
4e52558fb1
commit
53a00353b6
|
@ -43,6 +43,8 @@ class TestCurses(unittest.TestCase):
|
|||
@classmethod
|
||||
def setUpClass(cls):
|
||||
if not sys.__stdout__.isatty():
|
||||
# Temporary skip tests on non-tty
|
||||
self.skip('sys.__stdout__ is not a tty')
|
||||
cls.tmp = tempfile.TemporaryFile()
|
||||
fd = cls.tmp.fileno()
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue