|
1 | 1 | import dpctl |
2 | 2 | import numpy |
3 | 3 | import pytest |
4 | | -from dpctl.utils import ExecutionPlacementError |
5 | 4 | from numpy.testing import ( |
6 | 5 | assert_allclose, |
7 | 6 | assert_array_equal, |
@@ -710,12 +709,14 @@ def test_errors(self): |
710 | 709 | # another `to_begin` sycl queue |
711 | 710 | to_begin = dpnp.array([-20, -15], sycl_queue=dpctl.SyclQueue()) |
712 | 711 | assert_raises( |
713 | | - ExecutionPlacementError, dpnp.ediff1d, ia, to_begin=to_begin |
| 712 | + dpt.ExecutionPlacementError, dpnp.ediff1d, ia, to_begin=to_begin |
714 | 713 | ) |
715 | 714 |
|
716 | 715 | # another `to_end` sycl queue |
717 | 716 | to_end = dpnp.array([15, 20], sycl_queue=dpctl.SyclQueue()) |
718 | | - assert_raises(ExecutionPlacementError, dpnp.ediff1d, ia, to_end=to_end) |
| 717 | + assert_raises( |
| 718 | + dpt.ExecutionPlacementError, dpnp.ediff1d, ia, to_end=to_end |
| 719 | + ) |
719 | 720 |
|
720 | 721 |
|
721 | 722 | class TestGradient: |
@@ -2131,13 +2132,13 @@ def test_unary_two_outs_cfd_error(self, func): |
2131 | 2132 | out1 = dpnp.empty((), sycl_queue=dpctl.SyclQueue()) |
2132 | 2133 | out2 = dpnp.empty((), sycl_queue=dpctl.SyclQueue()) |
2133 | 2134 | with pytest.raises( |
2134 | | - ExecutionPlacementError, |
| 2135 | + dpt.ExecutionPlacementError, |
2135 | 2136 | match="Input and output allocation queues are not compatible", |
2136 | 2137 | ): |
2137 | 2138 | _ = fn(*args, out1) |
2138 | 2139 |
|
2139 | 2140 | with pytest.raises( |
2140 | | - ExecutionPlacementError, |
| 2141 | + dpt.ExecutionPlacementError, |
2141 | 2142 | match="Input and output allocation queues are not compatible", |
2142 | 2143 | ): |
2143 | 2144 | _ = fn(*args, out=(None, out2)) |
|
0 commit comments