Skip to content

Commit acde046

Browse files
AlexanderKalistratovvtavana
authored andcommitted
fix test_digitize_error (#2204)
```python with pytest.raises(TypeError): dpnp.digitize(x_np, bins_dp) dpnp.digitize(x_dp, bins_np) # <= unreachable line ``` ```python with pytest.raises(TypeError): dpnp.digitize(x_np, bins_dp) with pytest.raises(TypeError): dpnp.digitize(x_dp, bins_np) # <= reachable line ``` - [x] Have you provided a meaningful PR description? - [x] Have you added a test, reproducer or referred to issue with a reproducer? - [x] Have you tested your changes locally for CPU and GPU devices? - [x] Have you made sure that new changes do not introduce compiler warnings? - [x] Have you checked performance impact of proposed changes? - [x] If this PR is a work in progress, are you filing the PR as a draft?
1 parent 1df9295 commit acde046

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

dpnp/tests/test_histogram.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ def test_digitize_error(self):
113113
bins_np = dpnp.asnumpy(bins_dp)
114114
with pytest.raises(TypeError):
115115
dpnp.digitize(x_np, bins_dp)
116+
with pytest.raises(TypeError):
116117
dpnp.digitize(x_dp, bins_np)
117118

118119
# bins ndim < 1

0 commit comments

Comments
 (0)