diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2006-01-10 07:05:44 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2006-01-10 07:05:44 (GMT) |
commit | 88bbd73d0763bb4df48d45791dafbef76c2e17a5 (patch) | |
tree | be74a99859ee5f4b03f91a643a683132d7f3cbd4 /Lib/test/test_curses.py | |
parent | fc76d633e8017fd948bc2363738cbdea41586e21 (diff) | |
download | cpython-88bbd73d0763bb4df48d45791dafbef76c2e17a5.zip cpython-88bbd73d0763bb4df48d45791dafbef76c2e17a5.tar.gz cpython-88bbd73d0763bb4df48d45791dafbef76c2e17a5.tar.bz2 |
SF bug #1400822, Extended version of _curses over{lay,write} does not work
Fix signatures to conform to doc (also fixed ungetmouse()).
Will backport.
Diffstat (limited to 'Lib/test/test_curses.py')
-rw-r--r-- | Lib/test/test_curses.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Lib/test/test_curses.py b/Lib/test/test_curses.py index 6f843ad..419d8fc 100644 --- a/Lib/test/test_curses.py +++ b/Lib/test/test_curses.py @@ -5,7 +5,8 @@ # does call every method and function. # # Functions not tested: {def,reset}_{shell,prog}_mode, getch(), getstr(), -# getmouse(), ungetmouse(), init_color() +# init_color() +# Only called, not tested: getmouse(), ungetmouse() # import curses, sys, tempfile, os @@ -106,6 +107,8 @@ def window_funcs(stdscr): stdscr.notimeout(1) win2.overlay(win) win2.overwrite(win) + win2.overlay(win, 1, 2, 3, 3, 2, 1) + win2.overwrite(win, 1, 2, 3, 3, 2, 1) stdscr.redrawln(1,2) stdscr.scrollok(1) @@ -201,6 +204,9 @@ def module_funcs(stdscr): if hasattr(curses, 'getmouse'): curses.mousemask(curses.BUTTON1_PRESSED) curses.mouseinterval(10) + # just verify these don't cause errors + m = curses.getmouse() + curses.ungetmouse(*m) def unit_tests(): from curses import ascii |