Skip to content

Commit 326d522

Browse files
authored
Fix nvbug 5880275 (#2097)
1 parent 78f72dd commit 326d522

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

cuda_bindings/tests/nvml/test_device.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
from functools import cache
66

7+
import numpy as np
78
import pytest
89

910
from cuda.bindings import nvml
@@ -78,7 +79,7 @@ def test_get_nv_link_supported_bw_modes(all_devices):
7879
assert not hasattr(modes, "total_bw_modes")
7980

8081
for mode in modes.bw_modes:
81-
assert isinstance(mode, int)
82+
assert isinstance(mode, np.uint8)
8283

8384

8485
def test_device_get_pdi(all_devices):

0 commit comments

Comments
 (0)