Skip to content

Commit 1d57614

Browse files
Merge pull request #1445 from IntelPython/fix-intel-device-test
Tweaked test_intel_device_info
2 parents 2d2f235 + c9cc505 commit 1d57614

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

dpctl/tests/test_utils.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121

2222
import dpctl
2323
import dpctl.utils
24-
from dpctl.enum_types import backend_type
2524

2625

2726
def test_get_execution_queue_input_validation():
@@ -132,9 +131,7 @@ def test_intel_device_info():
132131
pytest.skip("Default device could not be created")
133132
descr = dpctl.utils.intel_device_info(d)
134133
assert isinstance(descr, dict)
135-
assert ("device_id" in descr) or (
136-
not d.has_aspect_cpu and not d.backend == backend_type.level_zero
137-
)
134+
assert ("device_id" in descr) or not descr
138135
allowed_names = [
139136
"device_id",
140137
"gpu_slices",

0 commit comments

Comments
 (0)