diff --git a/arraycontext/pytest.py b/arraycontext/pytest.py
index ec9ac73665880d9370e08c0d2148d34bcdb10933..c9a13e96c90e0e77e46db9e1d492f64f22fa6da9 100644
--- a/arraycontext/pytest.py
+++ b/arraycontext/pytest.py
@@ -257,6 +257,15 @@ def pytest_generate_tests_for_pyopencl_array_context(metafunc) -> None:
     for device selection.
     """
 
+    from warnings import warn
+    warn("pytest_generate_tests_for_pyopencl_array_context is deprecated. "
+            "Use 'pytest_generate_tests = "
+            "arraycontext.pytest_generate_tests_for_array_contexts"
+            "([\"pyopencl-deprecated\"])' instead. "
+            "pytest_generate_tests_for_pyopencl_array_context will stop working "
+            "in 2022.",
+            DeprecationWarning, stacklevel=2)
+
     pytest_generate_tests_for_array_contexts([
         "pyopencl-deprecated",
         ], factory_arg_name="actx_factory")(metafunc)