summaryrefslogtreecommitdiff
path: root/testing/cffi1/test_verify1.py
diff options
context:
space:
mode:
Diffstat (limited to 'testing/cffi1/test_verify1.py')
-rw-r--r--testing/cffi1/test_verify1.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/testing/cffi1/test_verify1.py b/testing/cffi1/test_verify1.py
index ffc2fc3..4678736 100644
--- a/testing/cffi1/test_verify1.py
+++ b/testing/cffi1/test_verify1.py
@@ -1494,15 +1494,6 @@ def test_cannot_pass_float():
assert lib.foo(0) == 1
py.test.raises(TypeError, lib.foo, 0.0)
-def test_cast_from_int_type_to_bool():
- ffi = FFI()
- for basetype in ['char', 'short', 'int', 'long', 'long long']:
- for sign in ['signed', 'unsigned']:
- type = '%s %s' % (sign, basetype)
- assert int(ffi.cast("_Bool", ffi.cast(type, 42))) == 1
- assert int(ffi.cast("bool", ffi.cast(type, 42))) == 1
- assert int(ffi.cast("_Bool", ffi.cast(type, 0))) == 0
-
def test_addressof():
ffi = FFI()
ffi.cdef("""