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

This commit is contained in:
Serhiy Storchaka 2017-11-03 20:29:33 +02:00 committed by GitHub
parent cbe1756e3e
commit a7723d8b09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -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')