diff --git a/test/test_codegen.py b/test/test_codegen.py index 90cb68b52436d24a0f82ff582fb1ff28336dffb8..2eeeac9ffe2d6f2b081278e00503f620f4ba1429 100755 --- a/test/test_codegen.py +++ b/test/test_codegen.py @@ -1055,6 +1055,17 @@ def test_reduction_adds_deps(ctx_factory): out_dict["z"]) +def test_loopy_target_doesnot_take_arbit_args(ctx_factory): + # see https://github.com/inducer/pytato/issues/142 + ctx = ctx_factory() + cq = cl.CommandQueue(ctx) + + pt_prg = pt.generate_loopy(pt.zeros(10)) + + with pytest.raises(ValueError): + evt, (out, ) = pt_prg(cq, d="pytato_is_buggy") + + if __name__ == "__main__": if len(sys.argv) > 1: exec(sys.argv[1])