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:
parent
7fd9424230
commit
ba39d9c168
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user