mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Temporary skip curses tests on non-tty (issue #27067).
This commit is contained in:
parent
4e52558fb1
commit
53a00353b6
1 changed files with 2 additions and 0 deletions
|
@ -43,6 +43,8 @@ class TestCurses(unittest.TestCase):
|
||||||
@classmethod
|
@classmethod
|
||||||
def setUpClass(cls):
|
def setUpClass(cls):
|
||||||
if not sys.__stdout__.isatty():
|
if not sys.__stdout__.isatty():
|
||||||
|
# Temporary skip tests on non-tty
|
||||||
|
self.skip('sys.__stdout__ is not a tty')
|
||||||
cls.tmp = tempfile.TemporaryFile()
|
cls.tmp = tempfile.TemporaryFile()
|
||||||
fd = cls.tmp.fileno()
|
fd = cls.tmp.fileno()
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue