Commit 30314265 authored by Stefan Behnel's avatar Stefan Behnel

test syntax fixes

parent 8a79be0f
...@@ -10,14 +10,14 @@ def test_sizeof(): ...@@ -10,14 +10,14 @@ def test_sizeof():
True True
""" """
x = cython.declare(cython.bint) x = cython.declare(cython.bint)
print cython.sizeof(x) == cython.sizeof(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.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.uint) == cython.sizeof(cython.int))
print cython.sizeof(cython.p_int) == cython.sizeof(cython.p_double) print(cython.sizeof(cython.p_int) == cython.sizeof(cython.p_double))
if cython.compiled: if cython.compiled:
print cython.sizeof(cython.char) < cython.sizeof(cython.longlong) print(cython.sizeof(cython.char) < cython.sizeof(cython.longlong))
else: else:
print cython.sizeof(cython.char) == 1 print(cython.sizeof(cython.char) == 1)
## CURRENTLY BROKEN - FIXME!! ## CURRENTLY BROKEN - FIXME!!
...@@ -88,7 +88,7 @@ def test_with_nogil(nogil): ...@@ -88,7 +88,7 @@ def test_with_nogil(nogil):
""" """
result = False result = False
with nogil: with nogil:
print "WORKS" print("WORKS")
with cython.nogil: with cython.nogil:
result = True result = True
return result return result
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment