From ba39d9c168ba3dfc866225977c350bcc52d09bb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Walter=20D=C3=B6rwald?= Date: Sun, 18 May 2003 01:56:25 +0000 Subject: Add another error case to the insert test. --- Lib/test/test_array.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Lib/test/test_array.py b/Lib/test/test_array.py index 68f2787..7a3308b 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) -- cgit v0.12