]> granicus.if.org Git - python/commitdiff
Fixed an error in previous commit.
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 22 May 2016 15:23:36 +0000 (18:23 +0300)
committerSerhiy Storchaka <storchaka@gmail.com>
Sun, 22 May 2016 15:23:36 +0000 (18:23 +0300)
Lib/test/test_curses.py

index 5a197cffd4275bbb64d2f4b9a96b31d74f60a1d9..8411cdb0f25346853297116a6b5380406c633ea1 100644 (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: