mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
test_curses - substitute self.skip() with self.skipTest()
This commit is contained in:
parent
1d54b114c5
commit
645bc80918
1 changed files with 2 additions and 2 deletions
|
@ -244,7 +244,7 @@ class TestCurses(unittest.TestCase):
|
||||||
# Functions only available on a few platforms
|
# Functions only available on a few platforms
|
||||||
def test_colors_funcs(self):
|
def test_colors_funcs(self):
|
||||||
if not curses.has_colors():
|
if not curses.has_colors():
|
||||||
self.skip('requires colors support')
|
self.skipTest('requires colors support')
|
||||||
curses.start_color()
|
curses.start_color()
|
||||||
curses.init_pair(2, 1,1)
|
curses.init_pair(2, 1,1)
|
||||||
curses.color_content(1)
|
curses.color_content(1)
|
||||||
|
@ -267,7 +267,7 @@ class TestCurses(unittest.TestCase):
|
||||||
def test_getmouse(self):
|
def test_getmouse(self):
|
||||||
(availmask, oldmask) = curses.mousemask(curses.BUTTON1_PRESSED)
|
(availmask, oldmask) = curses.mousemask(curses.BUTTON1_PRESSED)
|
||||||
if availmask == 0:
|
if availmask == 0:
|
||||||
self.skip('mouse stuff not available')
|
self.skipTest('mouse stuff not available')
|
||||||
curses.mouseinterval(10)
|
curses.mouseinterval(10)
|
||||||
# just verify these don't cause errors
|
# just verify these don't cause errors
|
||||||
curses.ungetmouse(0, 0, 0, 0, curses.BUTTON1_PRESSED)
|
curses.ungetmouse(0, 0, 0, 0, curses.BUTTON1_PRESSED)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue