Commits

Mark Dickinson  committed 4a5ad91

Issue #8433: Fix test_curses failure caused by newer versions of
ncurses returning ERR from getmouse() when there are no mouse events
available.

  • Participants
  • Parent commits d2b7211
  • Branches 2.6

Comments (0)

Files changed (2)

File Lib/test/test_curses.py

         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())
 
 - 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?
 ================================