Skip to content

Commit 060fdf9

Browse files
committed
Keep test_count_nonzero unchanged to work on Windows
1 parent d292956 commit 060fdf9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/third_party/cupy/sorting_tests/test_count.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def func(xp):
1818
# CuPy returns zero-dimensional array instead of
1919
# returning a scalar value
2020
assert isinstance(c, xp.ndarray)
21-
assert c.dtype == "l"
21+
assert c.dtype == "p"
2222
assert c.shape == ()
2323
return int(c)
2424

@@ -33,7 +33,7 @@ def func(xp):
3333
# CuPy returns zero-dimensional array instead of
3434
# returning a scalar value
3535
assert isinstance(c, xp.ndarray)
36-
assert c.dtype == "l"
36+
assert c.dtype == "p"
3737
assert c.shape == ()
3838
return int(c)
3939

0 commit comments

Comments
 (0)