diff --git a/test/test_wrapper.py b/test/test_wrapper.py
index f5d774ba8c3cb5f02dd2ab74f020627149e6b9dc..a76aef797724d72a3c486b2ba5708d2dbd1944e9 100644
--- a/test/test_wrapper.py
+++ b/test/test_wrapper.py
@@ -1016,6 +1016,7 @@ def test_fine_grain_svm(ctx_factory):
         """).build()
 
     prg.twice(queue, ary.shape, None, cl.SVM(ary))
+    queue.finish()
 
     print(ary)
     assert np.array_equal(orig_ary*2, ary)