From 30314265ffc83667b646b36bc0ce034b3053d6b9 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Wed, 3 Nov 2010 16:04:37 +0100 Subject: [PATCH] test syntax fixes --- tests/run/pure_py.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/run/pure_py.py b/tests/run/pure_py.py index b733e4a2..3c91b098 100644 --- a/tests/run/pure_py.py +++ b/tests/run/pure_py.py @@ -10,14 +10,14 @@ def test_sizeof(): True """ x = cython.declare(cython.bint) - print cython.sizeof(x) == cython.sizeof(cython.bint) - print cython.sizeof(cython.char) <= cython.sizeof(cython.short) <= cython.sizeof(cython.int) <= cython.sizeof(cython.long) <= cython.sizeof(cython.longlong) - print cython.sizeof(cython.uint) == cython.sizeof(cython.int) - print cython.sizeof(cython.p_int) == cython.sizeof(cython.p_double) + print(cython.sizeof(x) == cython.sizeof(cython.bint)) + print(cython.sizeof(cython.char) <= cython.sizeof(cython.short) <= cython.sizeof(cython.int) <= cython.sizeof(cython.long) <= cython.sizeof(cython.longlong)) + print(cython.sizeof(cython.uint) == cython.sizeof(cython.int)) + print(cython.sizeof(cython.p_int) == cython.sizeof(cython.p_double)) if cython.compiled: - print cython.sizeof(cython.char) < cython.sizeof(cython.longlong) + print(cython.sizeof(cython.char) < cython.sizeof(cython.longlong)) else: - print cython.sizeof(cython.char) == 1 + print(cython.sizeof(cython.char) == 1) ## CURRENTLY BROKEN - FIXME!! @@ -88,7 +88,7 @@ def test_with_nogil(nogil): """ result = False with nogil: - print "WORKS" + print("WORKS") with cython.nogil: result = True return result -- 2.26.2