#
import curses, sys, tempfile, os
+import curses.panel
# Optionally test curses module. This currently requires that the
# 'curses' resource be given on the regrtest command line using the -u
print 'curses.unctrl fails on character', repr(ch)
+def test_userptr_without_set(stdscr):
+ w = curses.newwin(10, 10)
+ p = curses.panel.new_panel(w)
+ # try to access userptr() before calling set_userptr() -- segfaults
+ try:
+ p.userptr()
+ raise RuntimeError, 'userptr should fail since not set'
+ except curses.panel.error:
+ pass
def main(stdscr):
curses.savetty()
try:
module_funcs(stdscr)
window_funcs(stdscr)
+ test_userptr_without_set(stdscr)
finally:
curses.resetty()
Extension Modules
-----------------
+- Bug #1400115, Fix segfault when calling curses.panel.userptr()
+ without prior setting of the userptr.
+
- Fix 64-bit problems in bsddb.
- Patch #1365916: fix some unsafe 64-bit mmap methods.