Home
last modified time | relevance | path

Searched refs:CDefError (Results 1 – 12 of 12) sorted by relevance

/external/python/cffi/testing/cffi0/
Dtest_parsing.py2 from cffi import FFI, FFIError, CDefError, VerificationError
202 e = py.test.raises(CDefError, ffi.cdef, '#define FOO "blah"')
238 e = py.test.raises(CDefError, ffi.cdef, "int foo(...);")
245 e = py.test.raises(CDefError, ffi.cdef, " x y z ")
248 e = py.test.raises(CDefError, ffi.cdef, "\n\n\n x y z ")
254 e = py.test.raises(CDefError, ffi.cdef, """
271 e = py.test.raises(CDefError, ffi.cast, "foobarbazunknown", 0)
273 e = py.test.raises(CDefError, ffi.cast, "foobarbazunknown*", 0)
275 e = py.test.raises(CDefError, ffi.cast, "int(*)(foobarbazunknown)", 0)
302 e = py.test.raises(CDefError, ffi.cdef, "void f(foobarbazzz);")
[all …]
Dbackend_tests.py4 from cffi import FFI, CDefError, FFIError, VerificationMissing
1306 py.test.raises(CDefError, ffi.cast, "int(int)", 42)
1307 py.test.raises(CDefError, ffi.new, "int([5])(int)")
1769 py.test.raises(CDefError, ffi2.cast, "schar_t", 142)
Dtest_function.py2 from cffi import FFI, CDefError
/external/python/cffi/cffi/
Dcparser.py3 from .error import FFIError, CDefError
128 raise CDefError("'extern \"Python\" {': no '}' found")
138 raise CDefError("'extern \"Python\": no ';' found")
325 raise CDefError(msg)
373 raise CDefError("typedef does not declare any name",
392 raise CDefError("unexpected <%s>: this construct is valid "
395 except CDefError as e:
436 raise CDefError(
471 raise CDefError("construct does not declare any variable",
499 raise CDefError(
[all …]
D__init__.py5 from .error import CDefError, FFIError, VerificationError, VerificationMissing
Derror.py5 class CDefError(Exception): class
Dmodel.py5 from .error import CDefError, VerificationError, VerificationMissing
232 raise CDefError("cannot render the type %r: it is a function "
315 raise CDefError("cannot render the type %r: unknown length" %
554 raise CDefError("%s values don't all fit into either 'long' "
Dapi.py3 from .error import CDefError
186 raise CDefError("the type %r is a function type, not a "
/external/python/cffi/testing/cffi1/
Dtest_dlopen.py2 from cffi import FFI, VerificationError, CDefError
39 e = py.test.raises(CDefError, ffi.cdef, "#define BB 12.34")
Dtest_recompiler.py3 from cffi import FFI, VerificationError, FFIError, CDefError
1130 CDefError), # with pycparser >= 2.18
Dtest_verify1.py3 from cffi import CDefError
2227 CDefError), # with pycparser >= 2.18
/external/python/cffi/demo/
Dapi.py15 raise cffi.CDefError("duplicate pyexport'ed function %r"