mirror of
https://github.com/python/cpython.git
synced 2026-04-22 03:41:08 +00:00
Fix a misnamed test for lists. (GH-11933)
(cherry picked from commit f522a57ec7)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
This commit is contained in:
parent
99e9c36b29
commit
35de9bbbab
1 changed files with 7 additions and 1 deletions
|
|
@ -31,9 +31,15 @@ def test_init(self):
|
|||
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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue