Skip to content

Commit 52eb269

Browse files
Temporary skip curses tests on non-tty (issue #27067).
1 parent e4e6992 commit 52eb269

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Lib/test/test_curses.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ class TestCurses(unittest.TestCase):
4343
@classmethod
4444
def setUpClass(cls):
4545
if not sys.__stdout__.isatty():
46+
# Temporary skip tests on non-tty
47+
self.skip('sys.__stdout__ is not a tty')
4648
cls.tmp = tempfile.TemporaryFile()
4749
fd = cls.tmp.fileno()
4850
else:

0 commit comments

Comments
 (0)