Author: Armin Rigo <[email protected]>
Branch:
Changeset: r3260:e43fdc644918
Date: 2019-04-02 16:47 +0200
http://bitbucket.org/cffi/cffi/changeset/e43fdc644918/
Log: Two more cases
diff --git a/c/test_c.py b/c/test_c.py
--- a/c/test_c.py
+++ b/c/test_c.py
@@ -4363,3 +4363,7 @@
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))
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit