diff options
author | Walter Dörwald <walter@livinglogic.de> | 2003-05-18 01:56:25 (GMT) |
---|---|---|
committer | Walter Dörwald <walter@livinglogic.de> | 2003-05-18 01:56:25 (GMT) |
commit | ba39d9c168ba3dfc866225977c350bcc52d09bb3 (patch) | |
tree | 163f64840e2fc7870f78468723d93bb260bb2a00 | |
parent | 7fd9424230f51bda20507a85deda7be80c4cb507 (diff) | |
download | cpython-ba39d9c168ba3dfc866225977c350bcc52d09bb3.zip cpython-ba39d9c168ba3dfc866225977c350bcc52d09bb3.tar.gz cpython-ba39d9c168ba3dfc866225977c350bcc52d09bb3.tar.bz2 |
Add another error case to the insert test.
-rwxr-xr-x | Lib/test/test_array.py | 1 |
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) |