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(
356356 c_src_ptr = < void * > (< _Memory> src).get_data_ptr()
357357 elif _is_buffer(src):
358358 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
360360 raise RuntimeError (" Could not access buffer" )
361361 c_src_ptr = src_buf_view.buf
362362 src_is_buf = True
@@ -371,7 +371,7 @@ cdef DPCTLSyclEventRef _memcpy_impl(
371371 c_dst_ptr = < void * > (< _Memory> dst).get_data_ptr()
372372 elif _is_buffer(dst):
373373 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
375375 raise RuntimeError (" Could not access buffer" )
376376 c_dst_ptr = dst_buf_view.buf
377377 dst_is_buf = True
You can’t perform that action at this time.
0 commit comments