bpo-31924: Fix test_curses on NetBSD 8. (#4228)
This commit is contained in:
parent
cbe1756e3e
commit
a7723d8b09
|
@ -330,7 +330,8 @@ class TestCurses(unittest.TestCase):
|
|||
|
||||
@requires_curses_func('panel')
|
||||
def test_userptr_segfault(self):
|
||||
panel = curses.panel.new_panel(self.stdscr)
|
||||
w = curses.newwin(10, 10)
|
||||
panel = curses.panel.new_panel(w)
|
||||
class A:
|
||||
def __del__(self):
|
||||
panel.set_userptr(None)
|
||||
|
@ -339,7 +340,8 @@ class TestCurses(unittest.TestCase):
|
|||
|
||||
@requires_curses_func('panel')
|
||||
def test_new_curses_panel(self):
|
||||
panel = curses.panel.new_panel(self.stdscr)
|
||||
w = curses.newwin(10, 10)
|
||||
panel = curses.panel.new_panel(w)
|
||||
self.assertRaises(TypeError, type(panel))
|
||||
|
||||
@requires_curses_func('is_term_resized')
|
||||
|
|
Loading…
Reference in New Issue