summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_array.py
diff options
context:
space:
mode:
authorAlexandre Vassalotti <alexandre@peadrop.com>2009-07-05 05:47:28 (GMT)
committerAlexandre Vassalotti <alexandre@peadrop.com>2009-07-05 05:47:28 (GMT)
commitb78637a5bc8fcb1787d9a7e452fa9926eec538b4 (patch)
treeb1ac1459f1d261114bbfe36a4d1fe1ec6a873bc7 /Lib/test/test_array.py
parent7e4f3215db36f6c30cddd0ff160cc05dd26dcefc (diff)
downloadcpython-b78637a5bc8fcb1787d9a7e452fa9926eec538b4.zip
cpython-b78637a5bc8fcb1787d9a7e452fa9926eec538b4.tar.gz
cpython-b78637a5bc8fcb1787d9a7e452fa9926eec538b4.tar.bz2
Add more test cases to BaseTest.test_memoryview_no_resize.
Diffstat (limited to 'Lib/test/test_array.py')
-rwxr-xr-xLib/test/test_array.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_array.py b/Lib/test/test_array.py
index eb1fffb..79e1199 100755
--- a/Lib/test/test_array.py
+++ b/Lib/test/test_array.py
@@ -767,6 +767,12 @@ class BaseTest(unittest.TestCase):
self.assertEqual(m.tobytes(), expected)
self.assertRaises(BufferError, a.__delitem__, slice(0, len(a)))
self.assertEqual(m.tobytes(), expected)
+ self.assertRaises(BufferError, a.__imul__, 2)
+ self.assertEqual(m.tobytes(), expected)
+ self.assertRaises(BufferError, a.__iadd__, a)
+ self.assertEqual(m.tobytes(), expected)
+ self.assertRaises(BufferError, a.extend, a)
+ self.assertEqual(m.tobytes(), expected)
class StringTest(BaseTest):