summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_array.py
diff options
context:
space:
mode:
authorWalter Dörwald <walter@livinglogic.de>2003-05-18 01:56:25 (GMT)
committerWalter Dörwald <walter@livinglogic.de>2003-05-18 01:56:25 (GMT)
commitba39d9c168ba3dfc866225977c350bcc52d09bb3 (patch)
tree163f64840e2fc7870f78468723d93bb260bb2a00 /Lib/test/test_array.py
parent7fd9424230f51bda20507a85deda7be80c4cb507 (diff)
downloadcpython-ba39d9c168ba3dfc866225977c350bcc52d09bb3.zip
cpython-ba39d9c168ba3dfc866225977c350bcc52d09bb3.tar.gz
cpython-ba39d9c168ba3dfc866225977c350bcc52d09bb3.tar.bz2
Add another error case to the insert test.
Diffstat (limited to 'Lib/test/test_array.py')
-rwxr-xr-xLib/test/test_array.py1
1 files changed, 1 insertions, 0 deletions
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)