0
0
mirror of https://github.com/python/cpython.git synced 2024-11-28 08:20:55 +01:00

Add another error case to the insert test.

This commit is contained in:
Walter Dörwald 2003-05-18 01:56:25 +00:00
parent 7fd9424230
commit ba39d9c168

View File

@ -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)