MCPcopy Index your code
hub / github.com/python/cpython / test_issue13051

Method test_issue13051

Lib/test/test_curses.py:1214–1220  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1212
1213 @requires_curses_window_meth('resize')
1214 def test_issue13051(self):
1215 win = curses.newwin(5, 15, 2, 5)
1216 box = curses.textpad.Textbox(win, insert_mode=True)
1217 lines, cols = win.getmaxyx()
1218 win.resize(lines-2, cols-2)
1219 # this may cause infinite recursion, leading to a RuntimeError
1220 box._insert_printable_char('a')
1221
1222
1223class MiscTests(unittest.TestCase):

Callers

nothing calls this directly

Calls 2

resizeMethod · 0.45

Tested by

no test coverage detected