File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -356,7 +356,7 @@ cdef DPCTLSyclEventRef _memcpy_impl(
356
356
c_src_ptr = < void * > (< _Memory> src).get_data_ptr()
357
357
elif _is_buffer(src):
358
358
ret_code = PyObject_GetBuffer(src, & src_buf_view, PyBUF_SIMPLE | PyBUF_ANY_CONTIGUOUS)
359
- if ret_code != 0 :
359
+ if ret_code != 0 : # pragma: no cover
360
360
raise RuntimeError (" Could not access buffer" )
361
361
c_src_ptr = src_buf_view.buf
362
362
src_is_buf = True
@@ -371,7 +371,7 @@ cdef DPCTLSyclEventRef _memcpy_impl(
371
371
c_dst_ptr = < void * > (< _Memory> dst).get_data_ptr()
372
372
elif _is_buffer(dst):
373
373
ret_code = PyObject_GetBuffer(dst, & dst_buf_view, PyBUF_SIMPLE | PyBUF_ANY_CONTIGUOUS | PyBUF_WRITABLE)
374
- if ret_code != 0 :
374
+ if ret_code != 0 : # pragma: no cover
375
375
raise RuntimeError (" Could not access buffer" )
376
376
c_dst_ptr = dst_buf_view.buf
377
377
dst_is_buf = True
You can’t perform that action at this time.
0 commit comments