Skip to content

Commit

Permalink
Merge pull request #1445 from IntelPython/fix-intel-device-test
Browse files Browse the repository at this point in the history
Tweaked test_intel_device_info
  • Loading branch information
oleksandr-pavlyk authored Oct 17, 2023
2 parents 2d2f235 + c9cc505 commit 1d57614
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions dpctl/tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@

import dpctl
import dpctl.utils
from dpctl.enum_types import backend_type


def test_get_execution_queue_input_validation():
Expand Down Expand Up @@ -132,9 +131,7 @@ def test_intel_device_info():
pytest.skip("Default device could not be created")
descr = dpctl.utils.intel_device_info(d)
assert isinstance(descr, dict)
assert ("device_id" in descr) or (
not d.has_aspect_cpu and not d.backend == backend_type.level_zero
)
assert ("device_id" in descr) or not descr
allowed_names = [
"device_id",
"gpu_slices",
Expand Down

0 comments on commit 1d57614

Please sign in to comment.