[pypy-svn] r78914 - pypy/branch/fast-forward/lib-python/modified-2.7.0/test

afa at codespeak.net afa at codespeak.net
Tue Nov 9 13:03:44 CET 2010


Author: afa
Date: Tue Nov  9 13:03:41 2010
New Revision: 78914

Added:
   pypy/branch/fast-forward/lib-python/modified-2.7.0/test/test_struct.py
      - copied, changed from r78910, pypy/branch/fast-forward/lib-python/2.7.0/test/test_struct.py
Log:
Implementation detail: allow the struct module to "work" in this case.


Copied: pypy/branch/fast-forward/lib-python/modified-2.7.0/test/test_struct.py (from r78910, pypy/branch/fast-forward/lib-python/2.7.0/test/test_struct.py)
==============================================================================
--- pypy/branch/fast-forward/lib-python/2.7.0/test/test_struct.py	(original)
+++ pypy/branch/fast-forward/lib-python/modified-2.7.0/test/test_struct.py	Tue Nov  9 13:03:41 2010
@@ -535,7 +535,8 @@
 
     @unittest.skipUnless(IS32BIT, "Specific to 32bit machines")
     def test_crasher(self):
-        self.assertRaises(MemoryError, struct.pack, "357913941c", "a")
+        self.assertRaises((MemoryError, struct.error), struct.pack,
+                          "357913941c", "a")
 
     def test_count_overflow(self):
         hugecount = '{}b'.format(sys.maxsize+1)



More information about the Pypy-commit mailing list