[pypy-svn] r52342 - pypy/branch/buffer/lib-python/modified-2.4.1/test

arigo at codespeak.net arigo at codespeak.net
Sun Mar 9 16:36:58 CET 2008


Author: arigo
Date: Sun Mar  9 16:36:57 2008
New Revision: 52342

Modified:
   pypy/branch/buffer/lib-python/modified-2.4.1/test/test_array.py
Log:
Final whacking.  Tests pass.


Modified: pypy/branch/buffer/lib-python/modified-2.4.1/test/test_array.py
==============================================================================
--- pypy/branch/buffer/lib-python/modified-2.4.1/test/test_array.py	(original)
+++ pypy/branch/buffer/lib-python/modified-2.4.1/test/test_array.py	Sun Mar  9 16:36:57 2008
@@ -810,8 +810,8 @@
         a = array.array(self.typecode, [lower])
         a[0] = lower
         # should overflow assigning less than lower limit
-        self.assertRaises((OverflowError, struct.error), array.array, self.typecode, [lower-1])
-        self.assertRaises((OverflowError, struct.error), a.__setitem__, 0, lower-1)
+        self.assertRaises((OverflowError, struct.error, ValueError), array.array, self.typecode, [lower-1])
+        self.assertRaises((OverflowError, struct.error, ValueError), a.__setitem__, 0, lower-1)
         # should not overflow assigning upper limit
         a = array.array(self.typecode, [upper])
         a[0] = upper



More information about the Pypy-commit mailing list