Skip to content

Commit

Permalink
Change tests to use .sycl_queue property
Browse files Browse the repository at this point in the history
  • Loading branch information
oleksandr-pavlyk committed Oct 29, 2021
1 parent adc7f13 commit e5d15cc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dpctl/tests/test_sycl_usm.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ def test_memory_create(memory_ctor):
assert len(mobj) == nbytes
assert mobj.size == nbytes
assert mobj._context == queue.sycl_context
assert mobj._queue == queue.sycl_queue
assert type(repr(mobj)) is str
assert type(bytes(mobj)) is bytes
assert sys.getsizeof(mobj) > nbytes
Expand Down Expand Up @@ -495,7 +496,7 @@ def test_with_constructor(memory_ctor):
shape=(64,),
strides=(1,),
offset=0,
syclobj=buf._queue._get_capsule(),
syclobj=buf.sycl_queue._get_capsule(),
)
check_view(v)
# Use context capsule
Expand Down

0 comments on commit e5d15cc

Please sign in to comment.