diff --git a/test/test_algorithm.py b/test/test_algorithm.py
index 0bb4f08455d09d621d35672aa5026347ddab7c65..bcf7e9360eaafbbe9ade22d1aa334016257ec02e 100644
--- a/test/test_algorithm.py
+++ b/test/test_algorithm.py
@@ -536,7 +536,7 @@ def test_partition(ctx_factory):
 
     from pyopencl.clrandom import rand as clrand
     for n in scan_test_counts:
-        print "part", n
+        print("part", n)
 
         a_dev = clrand(queue, (n,), dtype=np.int32, a=0, b=1000)
         a = a_dev.get()