From 0a91e43820d68155997bb236c23f9090a722189d Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Sun, 22 May 2016 18:23:36 +0300 Subject: [PATCH] Fixed an error in previous commit. --- Lib/test/test_curses.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_curses.py b/Lib/test/test_curses.py index 5a197cffd42..8411cdb0f25 100644 --- a/Lib/test/test_curses.py +++ b/Lib/test/test_curses.py @@ -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: