]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Temporary skip curses tests on non-tty (issue #27067).
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 22 May 2016 15:16:20 +0000 (18:16 +0300)
committerSerhiy Storchaka <storchaka@gmail.com>
Sun, 22 May 2016 15:16:20 +0000 (18:16 +0300)
Lib/test/test_curses.py

index 40ec5cf1de4ca352bcfcbfebb84fd0d69a29e00e..5a197cffd4275bbb64d2f4b9a96b31d74f60a1d9 100644 (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: