diff options
author | Alexandre Vassalotti <alexandre@peadrop.com> | 2009-07-05 05:47:28 (GMT) |
---|---|---|
committer | Alexandre Vassalotti <alexandre@peadrop.com> | 2009-07-05 05:47:28 (GMT) |
commit | b78637a5bc8fcb1787d9a7e452fa9926eec538b4 (patch) | |
tree | b1ac1459f1d261114bbfe36a4d1fe1ec6a873bc7 /Lib | |
parent | 7e4f3215db36f6c30cddd0ff160cc05dd26dcefc (diff) | |
download | cpython-b78637a5bc8fcb1787d9a7e452fa9926eec538b4.zip cpython-b78637a5bc8fcb1787d9a7e452fa9926eec538b4.tar.gz cpython-b78637a5bc8fcb1787d9a7e452fa9926eec538b4.tar.bz2 |
Add more test cases to BaseTest.test_memoryview_no_resize.
Diffstat (limited to 'Lib')
-rwxr-xr-x | Lib/test/test_array.py | 6 |
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): |