From 22887ae7ec10a217b0267ea8a6106ec3b8dd44b3 Mon Sep 17 00:00:00 2001 From: Armin Rigo Date: Tue, 2 Apr 2019 16:44:10 +0200 Subject: improve the test on py2.7 --- c/test_c.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'c') 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 -- cgit v1.2.1