Skip to content

Commit d9708a6

Browse files
committed
Fix test
1 parent cbebe45 commit d9708a6

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

test/test_pytato_arraycontext.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -255,13 +255,11 @@ def twice(x, y, a):
255255

256256
actx = _PytatoPyOpenCLArrayContextForTests(actx_factory().queue)
257257

258-
import pyopencl.array as cl_array
259-
cl_ary = cl_array.to_device(actx.queue, np.float64(23))
258+
cl_ary = actx.from_numpy(np.float64(23))
260259

261260
f = actx.compile(twice)
262261

263-
with pytest.raises(ValueError):
264-
f(99.0, np.float64(2.0), cl_ary)
262+
assert actx.to_numpy(f(99.0, np.float64(2.0), cl_ary)) == 2*23*99*2
265263

266264

267265
if __name__ == "__main__":

0 commit comments

Comments
 (0)