

def test_parse_error():
    ffi = FFI()
    e = py.test.raises(CDefError, ffi.cdef, ' x y z ')
    assert re.match('cannot parse "x y z"\\n:\\d+:', str(e.value))

dataset/ETHPy150Open johncsnyder/SwiftKitten/cffi/testing/cffi0/test_parsing.py test_parse_error/original