[pypy-commit] cffi default: Two more cases

arigo pypy.commits at gmail.com
Tue Apr 2 10:48:09 EDT 2019


Author: Armin Rigo <arigo at tunes.org>
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))


More information about the pypy-commit mailing list