[pypy-commit] cffi default: Missing fixes.

arigo noreply at buildbot.pypy.org
Wed Jun 27 10:53:49 CEST 2012


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r538:9870a04275cc
Date: 2012-06-27 10:53 +0200
http://bitbucket.org/cffi/cffi/changeset/9870a04275cc/

Log:	Missing fixes.

diff --git a/c/test_c.py b/c/test_c.py
--- a/c/test_c.py
+++ b/c/test_c.py
@@ -5,8 +5,8 @@
 if '__pypy__' in sys.modules:
     py.test.skip("C backend in CPython only")
 
-from _ffi_backend import *
-from _ffi_backend import _getfields, _testfunc
+from _cffi_backend import *
+from _cffi_backend import _getfields, _testfunc
 
 # ____________________________________________________________
 
@@ -49,7 +49,7 @@
     p = new_primitive_type("signed char")
     x = cast(p, -65 + 17*256)
     assert repr(x) == "<cdata 'signed char' -65>"
-    assert repr(type(x)) == "<type '_ffi_backend.CData'>"
+    assert repr(type(x)) == "<type '_cffi_backend.CData'>"
     assert int(x) == -65
     x = cast(p, -66 + (1<<199)*256)
     assert repr(x) == "<cdata 'signed char' -66>"


More information about the pypy-commit mailing list