Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tweaked test_intel_device_info #1445

Merged
merged 1 commit into from
Oct 17, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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