[pypy-commit] cffi default: PyPy fix: the test is anyway more interesting this way
arigo
noreply at buildbot.pypy.org
Fri Jul 6 14:56:02 CEST 2012
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r584:367d49f0b97e
Date: 2012-07-06 14:55 +0200
http://bitbucket.org/cffi/cffi/changeset/367d49f0b97e/
Log: PyPy fix: the test is anyway more interesting this way
diff --git a/c/test_c.py b/c/test_c.py
--- a/c/test_c.py
+++ b/c/test_c.py
@@ -1168,8 +1168,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