Kaydet (Commit) aa6a939d authored tarafından Mark Dickinson's avatar Mark Dickinson

Issue #8433: Fix test_curses failure caused by newer versions of

ncurses returning ERR from getmouse() when there are no mouse events
available.
üst 5b07f3cb
......@@ -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())
......
......@@ -23,6 +23,13 @@ Extension Modules
- Issue #7567: Don't call `setupterm' twice.
Tests
-----
- Issue #8433: Fix test_curses failure caused by newer versions of
ncurses returning ERR from getmouse() when there are no mouse
events available.
What's New in Python 2.6.6 rc 1?
================================
......
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