Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit af43e9a

Browse files
committed
Issue #8433: Fix test_curses failure for platforms with recent versions of ncurses.
1 parent a62207c commit af43e9a

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

Lib/test/test_curses.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,8 @@ def module_funcs(stdscr):
220220
if availmask != 0:
221221
curses.mouseinterval(10)
222222
# just verify these don't cause errors
223+
curses.ungetmouse(0, 0, 0, 0, curses.BUTTON1_PRESSED)
223224
m = curses.getmouse()
224-
curses.ungetmouse(*m)
225225

226226
if hasattr(curses, 'is_term_resized'):
227227
curses.is_term_resized(*stdscr.getmaxyx())

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@ Tools/Demos
126126
Tests
127127
-----
128128

129+
- Issue #8433: Fix test_curses failure with newer versions of ncurses.
130+
129131
- Issue #9496: Provide a test suite for the rlcompleter module. Patch by
130132
Michele Orrù.
131133

0 commit comments

Comments
 (0)