Skip to content

Commit 8f915fb

Browse files
committed
Test against stable numpy sort
1 parent 0941ebb commit 8f915fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dpnp/tests/test_sort.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def test_axis(self, axis):
3535
ia = dpnp.array(a)
3636

3737
result = dpnp.argsort(ia, axis=axis)
38-
expected = numpy.argsort(a, axis=axis)
38+
expected = numpy.argsort(a, axis=axis, kind="stable")
3939
assert_array_equal(result, expected)
4040

4141
@pytest.mark.parametrize("dtype", get_all_dtypes(no_none=True))
@@ -295,7 +295,7 @@ def test_axis(self, axis):
295295
ia = dpnp.array(a)
296296

297297
result = dpnp.sort(ia, axis=axis)
298-
expected = numpy.sort(a, axis=axis)
298+
expected = numpy.sort(a, axis=axis, kind="stable")
299299
assert_array_equal(result, expected)
300300

301301
@pytest.mark.parametrize("dtype", get_all_dtypes(no_none=True))

0 commit comments

Comments
 (0)