diff --git a/pystencils_tests/test_opencl.py b/pystencils_tests/test_opencl.py
index ea5b1ecbc83f21672731b2ecbcb54c78faa1603b..af13c51c168cb826ee6499f0d0d09db10a388e4c 100644
--- a/pystencils_tests/test_opencl.py
+++ b/pystencils_tests/test_opencl.py
@@ -246,8 +246,6 @@ def test_kernel_creation():
 
     print(assignments)
 
-    pystencils.opencl.clear_global_ctx()
-
     import pystencils.opencl.autoinit
     ast = pystencils.create_kernel(assignments, target='opencl')