summaryrefslogtreecommitdiff
path: root/c/test_c.py
diff options
context:
space:
mode:
Diffstat (limited to 'c/test_c.py')
-rw-r--r--c/test_c.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/c/test_c.py b/c/test_c.py
index 4aec6ae..9f30b76 100644
--- a/c/test_c.py
+++ b/c/test_c.py
@@ -4363,3 +4363,7 @@ def test_int_doesnt_give_bool():
assert type(x) is int and x == 1
x = long(cast(BBool, 42))
assert type(x) is long and x == 1
+ with pytest.raises(TypeError):
+ float(cast(BBool, 42))
+ with pytest.raises(TypeError):
+ complex(cast(BBool, 42))