Skip to content

Commit c78ecd7

Browse files
committed
test: handle is zero
1 parent 7f1dfe9 commit c78ecd7

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

cuda_core/tests/test_device.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@ def test_device_alloc_zero_bytes(deinit_cuda):
5252
device.set_current()
5353
buffer = device.allocate(0)
5454
device.sync()
55-
# TODO: should the handle be zero here?
56-
assert buffer.handle != 0
55+
assert buffer.handle == 0
5756
assert buffer.size == 0
5857
assert buffer.device_id == int(device)
5958

0 commit comments

Comments
 (0)