[pypy-commit] pypy ffi-backend: Copying from cffi/cffi

arigo noreply at buildbot.pypy.org
Fri Jul 6 14:56:09 CEST 2012


Author: Armin Rigo <arigo at tunes.org>
Branch: ffi-backend
Changeset: r55935:3a5f1ecd9ee4
Date: 2012-07-06 14:55 +0200
http://bitbucket.org/pypy/pypy/changeset/3a5f1ecd9ee4/

Log:	Copying from cffi/cffi

diff --git a/pypy/module/_cffi_backend/test/_backend_test_c.py b/pypy/module/_cffi_backend/test/_backend_test_c.py
--- a/pypy/module/_cffi_backend/test/_backend_test_c.py
+++ b/pypy/module/_cffi_backend/test/_backend_test_c.py
@@ -1158,8 +1158,9 @@
     new_function_type((), BFunc)    # works
     new_function_type((), new_primitive_type("int"))
     new_function_type((), new_pointer_type(BFunc))
-    py.test.raises(NotImplementedError, new_function_type, (),
-                   new_union_type("foo_u"))
+    BUnion = new_union_type("foo_u")
+    complete_struct_or_union(BUnion, [])
+    py.test.raises(NotImplementedError, new_function_type, (), BUnion)
     py.test.raises(TypeError, new_function_type, (), BArray)
 
 def test_struct_return_in_func():


More information about the pypy-commit mailing list