Commit a7723d8b authored by Serhiy Storchaka's avatar Serhiy Storchaka Committed by GitHub

bpo-31924: Fix test_curses on NetBSD 8. (#4228)

parent cbe1756e
......@@ -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')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment