[Python-checkins] r83780 - in python/branches/py3k: Lib/test/test_curses.py Misc/NEWS

mark.dickinson python-checkins at python.org
Sat Aug 7 14:33:36 CEST 2010


Author: mark.dickinson
Date: Sat Aug  7 14:33:36 2010
New Revision: 83780

Log:
Issue #8433: Fix test_curses failure for platforms with recent versions of ncurses.

Modified:
   python/branches/py3k/Lib/test/test_curses.py
   python/branches/py3k/Misc/NEWS

Modified: python/branches/py3k/Lib/test/test_curses.py
==============================================================================
--- python/branches/py3k/Lib/test/test_curses.py	(original)
+++ python/branches/py3k/Lib/test/test_curses.py	Sat Aug  7 14:33:36 2010
@@ -220,8 +220,8 @@
         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())

Modified: python/branches/py3k/Misc/NEWS
==============================================================================
--- python/branches/py3k/Misc/NEWS	(original)
+++ python/branches/py3k/Misc/NEWS	Sat Aug  7 14:33:36 2010
@@ -126,6 +126,8 @@
 Tests
 -----
 
+- Issue #8433: Fix test_curses failure with newer versions of ncurses.
+
 - Issue #9496: Provide a test suite for the rlcompleter module.  Patch by
   Michele Orrù.
 


More information about the Python-checkins mailing list