[pypy-svn] r66114 - in pypy/trunk/pypy: module/mmap/test objspace/std/test

antocuni at codespeak.net antocuni at codespeak.net
Sat Jul 4 15:09:48 CEST 2009


Author: antocuni
Date: Sat Jul  4 15:09:47 2009
New Revision: 66114

Modified:
   pypy/trunk/pypy/module/mmap/test/test_mmap.py
   pypy/trunk/pypy/objspace/std/test/test_stringobject.py
Log:
(bbrazil)

- Don't run string overflow replace test on 64 bit platforms, that would be
  bad

- CPython can also raise a SystemError



Modified: pypy/trunk/pypy/module/mmap/test/test_mmap.py
==============================================================================
--- pypy/trunk/pypy/module/mmap/test/test_mmap.py	(original)
+++ pypy/trunk/pypy/module/mmap/test/test_mmap.py	Sat Jul  4 15:09:47 2009
@@ -410,7 +410,7 @@
         def fn(m): m *= 1                         # but it
         raises((SystemError, TypeError), fn, m)   # doesn't
         def fn(): 1 * m                           # make much sense
-        raises(TypeError, fn)
+        raises((SystemError, TypeError), fn)
         m.close()
         f.close()
 #         

Modified: pypy/trunk/pypy/objspace/std/test/test_stringobject.py
==============================================================================
--- pypy/trunk/pypy/objspace/std/test/test_stringobject.py	(original)
+++ pypy/trunk/pypy/objspace/std/test/test_stringobject.py	Sat Jul  4 15:09:47 2009
@@ -723,6 +723,9 @@
         raises(TypeError, len, iter(iterable))
 
     def test_overflow_replace(self):
+        import sys
+        if sys.maxint > 2**31-1:
+            skip("Wrong platform")
         x = "A" * (2**16)
         raises(OverflowError, x.replace, '', x)
 



More information about the Pypy-commit mailing list