summaryrefslogtreecommitdiff
path: root/c
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2019-04-02 16:44:10 +0200
committerArmin Rigo <arigo@tunes.org>2019-04-02 16:44:10 +0200
commit22887ae7ec10a217b0267ea8a6106ec3b8dd44b3 (patch)
treeca2e6c7d752fd592ff08821c1ff35a233651f4b5 /c
parentf474398bd2ca7eea2fdb7e61ce9d4b8dd1aa7afa (diff)
downloadcffi-22887ae7ec10a217b0267ea8a6106ec3b8dd44b3.tar.gz
improve the test on py2.7
Diffstat (limited to 'c')
-rw-r--r--c/test_c.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/c/test_c.py b/c/test_c.py
index 6987f76..4aec6ae 100644
--- a/c/test_c.py
+++ b/c/test_c.py
@@ -4361,3 +4361,5 @@ def test_int_doesnt_give_bool():
BBool = new_primitive_type("_Bool")
x = int(cast(BBool, 42))
assert type(x) is int and x == 1
+ x = long(cast(BBool, 42))
+ assert type(x) is long and x == 1