mirror of
https://github.com/python/cpython.git
synced 2025-08-21 17:25:34 +00:00
Issue #8433: Fix test_curses failure caused by newer versions of
ncurses returning ERR from getmouse() when there are no mouse events available.
This commit is contained in:
parent
5b07f3cbfc
commit
aa6a939d33
2 changed files with 8 additions and 1 deletions
|
@ -216,8 +216,8 @@ def module_funcs(stdscr):
|
|||
if availmask != 0:
|
||||
curses.mouseinterval(10)
|
||||
# just verify these don't cause errors
|
||||
curses.ungetmouse(0, 0, 0, 0, curses.BUTTON1_PRESSED)
|
||||
m = curses.getmouse()
|
||||
curses.ungetmouse(*m)
|
||||
|
||||
if hasattr(curses, 'is_term_resized'):
|
||||
curses.is_term_resized(*stdscr.getmaxyx())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue