[Python-checkins] r73851 - python/branches/py3k/Lib/test/test_array.py

alexandre.vassalotti python-checkins at python.org
Sun Jul 5 07:47:28 CEST 2009


Author: alexandre.vassalotti
Date: Sun Jul  5 07:47:28 2009
New Revision: 73851

Log:
Add more test cases to BaseTest.test_memoryview_no_resize.


Modified:
   python/branches/py3k/Lib/test/test_array.py

Modified: python/branches/py3k/Lib/test/test_array.py
==============================================================================
--- python/branches/py3k/Lib/test/test_array.py	(original)
+++ python/branches/py3k/Lib/test/test_array.py	Sun Jul  5 07:47:28 2009
@@ -767,6 +767,12 @@
         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):


More information about the Python-checkins mailing list