Temporary skip curses tests on non-tty (issue #27067).

This commit is contained in:
Serhiy Storchaka 2016-05-22 18:16:20 +03:00
parent 4e52558fb1
commit 53a00353b6
1 changed files with 2 additions and 0 deletions

View File

@ -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: