From 1fd4db9c6cf100570736663923e20c7d619cc80c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Walter=20D=C3=B6rwald?= Date: Thu, 17 Feb 2005 22:31:28 +0000 Subject: [PATCH] Fix copy & paste error. --- Lib/test/test_userstring.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/test/test_userstring.py b/Lib/test/test_userstring.py index b9a5b7f76e4..95f13515385 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]