summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2019-12-25 19:04:43 -0700
committerGitHub <noreply@github.com>2019-12-25 19:04:43 -0700
commit75f791e784a2cf68c3663c0bf02bf395d95e75c0 (patch)
tree43c15e276969314e20c0a81f12a8848715ffdcf1
parent8302942843fd560f8cbd1e5c1152f3d7d03a175d (diff)
parent965f63b87374709f45467fe8e06bfd076da873fb (diff)
downloadnumpy-75f791e784a2cf68c3663c0bf02bf395d95e75c0.tar.gz
Merge pull request #15176 from charris/backport-14326
TST: Add assert_array_equal test for big integer arrays
-rw-r--r--numpy/testing/tests/test_utils.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/numpy/testing/tests/test_utils.py b/numpy/testing/tests/test_utils.py
index 44f93a693..1e3f52715 100644
--- a/numpy/testing/tests/test_utils.py
+++ b/numpy/testing/tests/test_utils.py
@@ -90,6 +90,21 @@ class TestArrayEqual(_GenericTest):
for t in ['S1', 'U1']:
foo(t)
+ def test_0_ndim_array(self):
+ x = np.array(473963742225900817127911193656584771)
+ y = np.array(18535119325151578301457182298393896)
+ assert_raises(AssertionError, self._assert_func, x, y)
+
+ y = x
+ self._assert_func(x, y)
+
+ x = np.array(43)
+ y = np.array(10)
+ assert_raises(AssertionError, self._assert_func, x, y)
+
+ y = x
+ self._assert_func(x, y)
+
def test_generic_rank3(self):
"""Test rank 3 array for all dtypes."""
def foo(t):