Author: Armin Rigo <ar...@tunes.org>
Branch: 
Changeset: r588:4e36c7c8204c
Date: 2012-07-07 13:01 +0200
http://bitbucket.org/cffi/cffi/changeset/4e36c7c8204c/

Log:    pypy fixes

diff --git a/c/test_c.py b/c/test_c.py
--- a/c/test_c.py
+++ b/c/test_c.py
@@ -868,7 +868,7 @@
 
 def test_a_lot_of_callbacks():
     BIGNUM = 10000
-    if hasattr(sys, 'pypy_objspaceclass'): BIGNUM = 100   # tests on py.py
+    if 'PY_DOT_PY' in globals(): BIGNUM = 100   # tests on py.py
     #
     BInt = new_primitive_type("int")
     BFunc = new_function_type((BInt,), BInt, False)
@@ -1316,4 +1316,5 @@
     p = cast(BVoidP, 123456)
     py.test.raises(TypeError, "p[0]")
     p = cast(BVoidP, 0)
+    if 'PY_DOT_PY' in globals(): py.test.skip("NULL crashes early on py.py")
     py.test.raises(TypeError, "p[0]")
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to