mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Fix copy & paste error.
This commit is contained in:
parent
7f79152929
commit
1fd4db9c6c
1 changed files with 2 additions and 2 deletions
|
@ -61,8 +61,8 @@ class MutableStringTest(UserStringTest):
|
|||
|
||||
def test_delitem(self):
|
||||
s = self.type2test("foo")
|
||||
self.assertRaises(IndexError, s.__setitem__, -1, "bar")
|
||||
self.assertRaises(IndexError, s.__setitem__, 3, "bar")
|
||||
self.assertRaises(IndexError, s.__delitem__, -1)
|
||||
self.assertRaises(IndexError, s.__delitem__, 3)
|
||||
del s[0]
|
||||
self.assertEqual(s, "oo")
|
||||
del s[1]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue