Commit f522a57e authored by Serhiy Storchaka's avatar Serhiy Storchaka Committed by GitHub

Fix a misnamed test for lists. (GH-11933)

parent 8d01eb49
......@@ -31,9 +31,15 @@ class CommonTest(seq_tests.CommonTest):
self.assertEqual(a, b)
def test_getitem_error(self):
a = []
msg = "list indices must be integers or slices"
with self.assertRaisesRegex(TypeError, msg):
a['a']
def test_setitem_error(self):
a = []
msg = "list indices must be integers or slices"
with self.assertRaisesRegex(TypeError, msg):
a = []
a['a'] = "python"
def test_repr(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment