mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
fail when negative values are passed to instr()
This commit is contained in:
parent
5e4aafa258
commit
432ea4ff37
3 changed files with 12 additions and 2 deletions
|
|
@ -165,6 +165,8 @@ class TestCurses(unittest.TestCase):
|
|||
|
||||
self.assertRaises(ValueError, stdscr.getstr, -400)
|
||||
self.assertRaises(ValueError, stdscr.getstr, 2, 3, -400)
|
||||
self.assertRaises(ValueError, stdscr.instr, -2)
|
||||
self.assertRaises(ValueError, stdscr.instr, 2, 3, -2)
|
||||
|
||||
|
||||
def test_module_funcs(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue