Fixed an error in previous commit.

This commit is contained in:
Serhiy Storchaka 2016-05-22 18:23:36 +03:00
parent 53a00353b6
commit 0a91e43820
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ class TestCurses(unittest.TestCase):
def setUpClass(cls):
if not sys.__stdout__.isatty():
# Temporary skip tests on non-tty
self.skip('sys.__stdout__ is not a tty')
raise unittest.SkipTest('sys.__stdout__ is not a tty')
cls.tmp = tempfile.TemporaryFile()
fd = cls.tmp.fileno()
else: