From f51724bc21d7c1ad3231d3feb2e4883686ee7e15 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner <inform@tiker.net> Date: Sun, 27 Jun 2021 00:00:30 -0500 Subject: [PATCH] Deprecate pytest_generate_tests_for_pyopencl_array_context --- arraycontext/pytest.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arraycontext/pytest.py b/arraycontext/pytest.py index ec9ac73..c9a13e9 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) -- GitLab