]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[Patch #1005892 from Alexandr Zamaraev] Fix two errors in the curses test suite
authorAndrew M. Kuchling <amk@amk.ca>
Wed, 15 Jun 2005 18:44:23 +0000 (18:44 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Wed, 15 Jun 2005 18:44:23 +0000 (18:44 +0000)
Lib/test/test_curses.py

index fa57e293521ef4cd9f29c24a2d56fc13bf3eb2b2..67f3c571ad1325eb4d5e504df30fcb02f4e91877 100644 (file)
@@ -107,6 +107,7 @@ def window_funcs(stdscr):
     stdscr.scroll(2)
     stdscr.scroll(-3)
 
+    stdscr.move(12, 2)
     stdscr.setscrreg(10,15)
     win3 = stdscr.subwin(10,10)
     win3 = stdscr.subwin(10,10, 5,5)
@@ -179,7 +180,7 @@ def module_funcs(stdscr):
         curses.init_pair(2, 1,1)
         curses.color_content(1)
         curses.color_pair(2)
-        curses.pair_content(curses.COLOR_PAIRS)
+        curses.pair_content(curses.COLOR_PAIRS - 1)
         curses.pair_number(0)
 
         if hasattr(curses, 'use_default_colors'):