summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_userstring.py
diff options
context:
space:
mode:
authorWalter Dörwald <walter@livinglogic.de>2005-02-17 22:31:28 (GMT)
committerWalter Dörwald <walter@livinglogic.de>2005-02-17 22:31:28 (GMT)
commit1fd4db9c6cf100570736663923e20c7d619cc80c (patch)
treeb810b49916c74edd45dac5a8d965f1736cd882e1 /Lib/test/test_userstring.py
parent7f791529292815252bcada54e796af72074103fb (diff)
downloadcpython-1fd4db9c6cf100570736663923e20c7d619cc80c.zip
cpython-1fd4db9c6cf100570736663923e20c7d619cc80c.tar.gz
cpython-1fd4db9c6cf100570736663923e20c7d619cc80c.tar.bz2
Fix copy & paste error.
Diffstat (limited to 'Lib/test/test_userstring.py')
-rwxr-xr-xLib/test/test_userstring.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_userstring.py b/Lib/test/test_userstring.py
index b9a5b7f..95f1351 100755
--- a/Lib/test/test_userstring.py
+++ b/Lib/test/test_userstring.py
@@ -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]