File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
numba_dpex/tests/kernel_tests Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 55import dpctl
66import dpnp
77import pytest
8- from numba .core .errors import LoweringError
8+ from numba .core .errors import TypingError
99
10- import numba_dpex as dpex
10+ import numba_dpex . experimental as dpex
1111
1212list_of_dtypes = [
1313 dpnp .int32 ,
@@ -84,9 +84,11 @@ def print_string(a):
8484
8585 a = input_arrays
8686
87- with pytest .raises (LoweringError ) :
87+ with pytest .raises (TypingError ) as ex_info :
8888 dpex .call_kernel (print_string , dpex .Range (1 ), a )
8989
90+ assert "LoweringError" in ex_info .value .args [0 ]
91+
9092
9193@skip_on_gpu
9294def test_print_array (input_arrays ):
@@ -100,5 +102,7 @@ def print_string(a):
100102
101103 a = input_arrays
102104
103- with pytest .raises (LoweringError ) :
105+ with pytest .raises (TypingError ) as ex_info :
104106 dpex .call_kernel (print_string , dpex .Range (1 ), a )
107+
108+ assert "LoweringError" in ex_info .value .args [0 ]
You can’t perform that action at this time.
0 commit comments