def test_check_version():
import _cffi_backend
e = py.test.raises(ImportError, _cffi_backend.FFI,
"foobar", _version=0x2594)
assert str(e.value).startswith(
"cffi out-of-line Python module 'foobar' has unknown version")
评论列表
文章目录