mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Merged revisions 75066 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r75066 | andrew.kuchling | 2009-09-25 17:23:54 -0500 (Fri, 25 Sep 2009) | 4 lines #6243: fix segfault when keyname() returns a NULL pointer. Bug noted by Trundle, patched by Trundle and Jerry Chen. ........
This commit is contained in:
parent
0df35a93a2
commit
7e2ef573ed
2 changed files with 12 additions and 4 deletions
|
@ -259,6 +259,10 @@ def test_resize_term(stdscr):
|
|||
if curses.LINES != lines - 1 or curses.COLS != cols + 1:
|
||||
raise RuntimeError("Expected resizeterm to update LINES and COLS")
|
||||
|
||||
def test_issue6243(stdscr):
|
||||
curses.ungetch(1025)
|
||||
stdscr.getkey()
|
||||
|
||||
def main(stdscr):
|
||||
curses.savetty()
|
||||
try:
|
||||
|
@ -266,6 +270,7 @@ def main(stdscr):
|
|||
window_funcs(stdscr)
|
||||
test_userptr_without_set(stdscr)
|
||||
test_resize_term(stdscr)
|
||||
test_issue6243(stdscr)
|
||||
finally:
|
||||
curses.resetty()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue