Skip to content

Commit d4fa31e

Browse files
TEST: fix test_histograms.py (#936)
fix IndexError: tuple index out of range
1 parent cf9122a commit d4fa31e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_histograms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def test_simple(self):
1818
v = dpnp.random.rand(n)
1919
(a, b) = dpnp.histogram(v)
2020
# check if the sum of the bins equals the number of samples
21-
numpy.testing.assert_equal(dpnp.sum(a, axis=0)[0], n)
21+
numpy.testing.assert_equal(dpnp.sum(a, axis=0), n)
2222
# check that the bin counts are evenly spaced when the data is from
2323
# a linear function
2424
(a, b) = dpnp.histogram(numpy.linspace(0, 10, 100))

0 commit comments

Comments
 (0)