From: Walter Dörwald Date: Sun, 18 May 2003 01:56:25 +0000 (+0000) Subject: Add another error case to the insert test. X-Git-Tag: v2.3c1~681 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ba39d9c168ba3dfc866225977c350bcc52d09bb3;p=python Add another error case to the insert test. --- diff --git a/Lib/test/test_array.py b/Lib/test/test_array.py index 68f2787295..7a3308be55 100755 --- a/Lib/test/test_array.py +++ b/Lib/test/test_array.py @@ -80,6 +80,7 @@ class BaseTest(unittest.TestCase): self.assertEqual(a[0], a[1]) self.assertRaises(TypeError, a.insert) self.assertRaises(TypeError, a.insert, None) + self.assertRaises(TypeError, a.insert, 0, None) def test_tofromfile(self): a = array.array(self.typecode, 2*self.example)