Skip to content

Commit 0579afa

Browse files
committed
Add testing bincount with uint64 since numpy 2.2.4
1 parent 4c86148 commit 0579afa

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

dpnp/tests/third_party/cupy/statistics_tests/test_histogram.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from dpnp.tests.third_party.cupy import testing
1010

1111
# Note that numpy.bincount does not support uint64 on 64-bit environment
12-
# as it casts an input array to intp.
12+
# as it casts an input array to intp (planned to support since 2.2.4).
1313
# And it does not support uint32, int64 and uint64 on 32-bit environment.
1414
_all_types = (
1515
numpy.float16,
@@ -28,6 +28,9 @@
2828
_all_types = _all_types + (numpy.int64, numpy.uint32)
2929
_signed_types = _signed_types + (numpy.int64,)
3030

31+
if numpy_version() > "2.2.3":
32+
_all_types = _all_types + (numpy.uint64,)
33+
3134

3235
def for_all_dtypes_bincount(name="dtype"):
3336
return testing.for_dtypes(_all_types, name=name)

0 commit comments

Comments
 (0)