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

Method test_index_errors

Lib/test/test_pyrepl/test_keymap.py:70–74  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

68 self.assertIn(expected_err, str(e.exception))
69
70 def test_index_errors(self):
71 test_cases = ["\\", "\\C", "\\C-\\C"]
72 for test_keys in test_cases:
73 with self.assertRaises(IndexError):
74 parse_keys(test_keys)
75
76
77class TestCompileKeymap(unittest.TestCase):

Callers

nothing calls this directly

Calls 2

parse_keysFunction · 0.90
assertRaisesMethod · 0.45

Tested by

no test coverage detected