diff options
author | Shota Kawabuchi <shota.kawabuchi+Github@gmail.com> | 2016-10-02 17:08:23 +0900 |
---|---|---|
committer | Shota Kawabuchi <shota.kawabuchi+Github@gmail.com> | 2016-10-03 00:05:47 +0900 |
commit | 28efd6b2dadd74182bc09a71221265b3c3f5bb3a (patch) | |
tree | 54342677cae8df03362863995dc7be01621f025e /numpy/lib/tests/test_index_tricks.py | |
parent | 364382b375ad547110530acc06f8590d8404e88c (diff) | |
download | numpy-28efd6b2dadd74182bc09a71221265b3c3f5bb3a.tar.gz |
TST: add intp type check in test_big_indices
Diffstat (limited to 'numpy/lib/tests/test_index_tricks.py')
-rw-r--r-- | numpy/lib/tests/test_index_tricks.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/numpy/lib/tests/test_index_tricks.py b/numpy/lib/tests/test_index_tricks.py index d6b821895..d9fa1f43e 100644 --- a/numpy/lib/tests/test_index_tricks.py +++ b/numpy/lib/tests/test_index_tricks.py @@ -49,10 +49,12 @@ class TestRavelUnravelIndex(TestCase): def test_big_indices(self): # ravel_multi_index for big indices (issue #7546) - arr = ([1, 29], [3, 5], [3, 117], [19, 2], [2379, 1284], [2, 2], [0, 1]) - assert_equal( - np.ravel_multi_index(arr, (41, 7, 120, 36, 2706, 8, 6)), - [5627771580, 117259570957]) + if np.intp == np.int64: + arr = ([1, 29], [3, 5], [3, 117], [19, 2], + [2379, 1284], [2, 2], [0, 1]) + assert_equal( + np.ravel_multi_index(arr, (41, 7, 120, 36, 2706, 8, 6)), + [5627771580, 117259570957]) # test overflow checking for too big array (issue #7546) dummy_arr = ([0],[0]) |