diff --git a/tests/test_dynamic_function.py b/tests/test_dynamic_function.py
index 4e266d1675bd43b3a36318426e6e527e6ce0d477..0c0a765bd7d9d0e932b1b15db8d9598ce8d492cb 100644
--- a/tests/test_dynamic_function.py
+++ b/tests/test_dynamic_function.py
@@ -62,7 +62,7 @@ def test_dynamic_matrix_location_dependent():
     A = TypedMatrixSymbol('A', 3, 1, create_type('double'), 'Vector3<double>')
 
     my_fun_call = DynamicFunction(TypedSymbol('my_fun',
-                                              'std: : function < Vector3 < double > (int, int, int) >'),
+                                              'std::function< Vector3 < double >(int, int, int) >'),
                                   A.dtype,
                                   *pystencils.x_vector(3))