[pypy-commit] cffi cffi-1.0: remove a test that doesn't make sense

arigo noreply at buildbot.pypy.org
Sat Apr 25 11:04:18 CEST 2015


Author: Armin Rigo <arigo at tunes.org>
Branch: cffi-1.0
Changeset: r1809:6055d7106150
Date: 2015-04-25 11:04 +0200
http://bitbucket.org/cffi/cffi/changeset/6055d7106150/

Log:	remove a test that doesn't make sense

diff --git a/_cffi1/test_verify1.py b/_cffi1/test_verify1.py
--- a/_cffi1/test_verify1.py
+++ b/_cffi1/test_verify1.py
@@ -898,15 +898,6 @@
     lib.cb = my_callback
     assert lib.foo(4) == 887
 
-def test_ctypes_backend_forces_generic_engine():
-    from cffi.backend_ctypes import CTypesBackend
-    ffi = FFI(backend=CTypesBackend())
-    ffi.cdef("int func(int a);")
-    lib = ffi.verify("int func(int a) { return a * 42; }")
-    assert not hasattr(lib, '_cffi_python_module')
-    assert hasattr(lib, '_cffi_generic_module')
-    assert lib.func(100) == 4200
-
 def test_call_with_struct_ptr():
     ffi = FFI()
     ffi.cdef("typedef struct { int x; ...; } foo_t; int foo(foo_t *);")


More information about the pypy-commit mailing list