Skip to content

Commit

Permalink
Fixes and small updates to various test cases.
Browse files Browse the repository at this point in the history
  • Loading branch information
Diptorup Deb committed May 19, 2023
1 parent ec62f96 commit ac67cd2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions numba_dpex/tests/_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import dpctl
import pytest

from numba_dpex import config, numba_version
from numba_dpex import config, numba_sem_version


def has_opencl_gpu():
Expand Down Expand Up @@ -113,7 +113,7 @@ def is_windows():
]

skip_no_numba056 = pytest.mark.skipif(
numba_version < (0, 56), reason="Need Numba 0.56 or higher"
numba_sem_version < (0, 56), reason="Need Numba 0.56 or higher"
)

skip_no_gdb = pytest.mark.skipif(
Expand Down
4 changes: 2 additions & 2 deletions numba_dpex/tests/misc/test_dpctl_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@

import dpctl

from numba_dpex import dpctl_version
from numba_dpex import dpctl_sem_version


def test_dpctl_version():
dpctl_v = dpctl.__version__
computed_v = ".".join(str(n) for n in dpctl_version)
computed_v = ".".join(str(n) for n in dpctl_sem_version)
n = len(computed_v)
assert n <= len(dpctl_v)
assert computed_v == dpctl_v[:n]

0 comments on commit ac67cd2

Please sign in to comment.