[pypy-commit] cffi default: improve the test on py2.7

arigo pypy.commits at gmail.com
Tue Apr 2 10:44:21 EDT 2019


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r3259:dbc31afe99d0
Date: 2019-04-02 16:44 +0200
http://bitbucket.org/cffi/cffi/changeset/dbc31afe99d0/

Log:	improve the test on py2.7

diff --git a/c/test_c.py b/c/test_c.py
--- a/c/test_c.py
+++ b/c/test_c.py
@@ -4361,3 +4361,5 @@
     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


More information about the pypy-commit mailing list