aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_curses.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-05-08 20:46:22 +0300
committerSerhiy Storchaka <storchaka@gmail.com>2016-05-08 20:46:22 +0300
commite3f1b0911e02f5108b90b9b25417a448a423da40 (patch)
treea9f0a153bfdbe33f242c3dcbcb25f6b2d31afe8e /Lib/test/test_curses.py
parent4c35964b764540988bfb342bffc7c4b1cb674031 (diff)
downloadcpython-e3f1b0911e02f5108b90b9b25417a448a423da40.tar.gz
cpython-e3f1b0911e02f5108b90b9b25417a448a423da40.zip
Issue #23815: Fixed crashes related to directly created instances of types in
_tkinter and curses.panel modules.
Diffstat (limited to 'Lib/test/test_curses.py')
-rw-r--r--Lib/test/test_curses.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_curses.py b/Lib/test/test_curses.py
index 27470415200..222105ed755 100644
--- a/Lib/test/test_curses.py
+++ b/Lib/test/test_curses.py
@@ -285,6 +285,10 @@ class TestCurses(unittest.TestCase):
panel.set_userptr(A())
panel.set_userptr(None)
+ def test_new_curses_panel(self):
+ panel = curses.panel.new_panel(self.stdscr)
+ self.assertRaises(TypeError, type(panel))
+
@unittest.skipUnless(hasattr(curses, 'resizeterm'),
'resizeterm not available')
def test_resize_term(self):