From e5eaa037c9dc3f8dd26aadc65559b595390d5c55 Mon Sep 17 00:00:00 2001 From: Matthias Diener <mdiener@illinois.edu> Date: Fri, 11 Jun 2021 15:19:08 -0500 Subject: [PATCH] pytest compat layer --- arraycontext/pytest.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arraycontext/pytest.py b/arraycontext/pytest.py index 5bad85c..cfba57f 100644 --- a/arraycontext/pytest.py +++ b/arraycontext/pytest.py @@ -115,6 +115,14 @@ def pytest_generate_tests_for_array_contexts(metafunc) -> None: metafunc.parametrize(arg_names, arg_values_out, ids=ids) + +def pytest_generate_tests_for_pyopencl_array_context(metafunc) -> None: + from warnings import warn + warn("'pytato.pytest_generate_tests_for_pyopencl_array_context' " + "is deprecated, use 'pytato.pytest_generate_tests_for_array_contexts' " + "instead.", DeprecationWarning) + pytest_generate_tests_for_array_contexts(metafunc) + # }}} -- GitLab