Skip to content

Commit

Permalink
bpo-31924: Fix test_curses on NetBSD 8. (GH-4228) (#4260)
Browse files Browse the repository at this point in the history
(cherry picked from commit a7723d8)
  • Loading branch information
miss-islington authored and serhiy-storchaka committed Nov 3, 2017
1 parent c713837 commit 6a9a331
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Lib/test/test_curses.py
Expand Up @@ -319,7 +319,8 @@ def test_userptr_memory_leak(self):

@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)
Expand All @@ -328,7 +329,8 @@ def __del__(self):

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

0 comments on commit 6a9a331

Please sign in to comment.