Author: Armin Rigo <ar...@tunes.org> Branch: Changeset: r558:95c88bfbf9f7 Date: 2012-06-28 22:17 +0200 http://bitbucket.org/cffi/cffi/changeset/95c88bfbf9f7/
Log: Split this test in two. diff --git a/c/test_c.py b/c/test_c.py --- a/c/test_c.py +++ b/c/test_c.py @@ -1140,7 +1140,7 @@ p.a1 = ['x', 'y'] assert str(p.a1) == 'xyo' -def test_struct_return_in_func(): +def test_invalid_function_result_types(): BFunc = new_function_type((), new_void_type()) BArray = new_array_type(new_pointer_type(BFunc), 5) # works new_function_type((), BFunc) # works @@ -1150,6 +1150,7 @@ (), new_union_type("foo_u")) py.test.raises(TypeError, new_function_type, (), BArray) +def test_struct_return_in_func(): if sys.platform == 'win32': py.test.skip("function returning struct") BChar = new_primitive_type("char") _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit