[Python-checkins] r83970 - in python/branches/release26-maint: Lib/test/test_curses.py Misc/NEWS
mark.dickinson
python-checkins at python.org
Fri Aug 13 09:57:29 CEST 2010
Author: mark.dickinson
Date: Fri Aug 13 09:57:29 2010
New Revision: 83970
Log:
Issue #8433: Fix test_curses failure caused by newer versions of
ncurses returning ERR from getmouse() when there are no mouse events
available.
Modified:
python/branches/release26-maint/ (props changed)
python/branches/release26-maint/Lib/test/test_curses.py
python/branches/release26-maint/Misc/NEWS
Modified: python/branches/release26-maint/Lib/test/test_curses.py
==============================================================================
--- python/branches/release26-maint/Lib/test/test_curses.py (original)
+++ python/branches/release26-maint/Lib/test/test_curses.py Fri Aug 13 09:57:29 2010
@@ -216,8 +216,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/release26-maint/Misc/NEWS
==============================================================================
--- python/branches/release26-maint/Misc/NEWS (original)
+++ python/branches/release26-maint/Misc/NEWS Fri Aug 13 09:57:29 2010
@@ -23,6 +23,13 @@
- 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?
================================
More information about the Python-checkins
mailing list