summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--numpy/core/tests/test_multiarray.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/numpy/core/tests/test_multiarray.py b/numpy/core/tests/test_multiarray.py
index 97984d082..1860bb922 100644
--- a/numpy/core/tests/test_multiarray.py
+++ b/numpy/core/tests/test_multiarray.py
@@ -2022,9 +2022,11 @@ class TestRecord(TestCase):
def test_record_hash(self):
a = np.array([(1,2),(1,2)], dtype='i1,i2')
b = np.array([(1,2),(3,4)], dtype=[('num1', 'i1'), ('num2', 'i2')])
+ c = np.array([(1,2),(3,4)], dtype='i1,i2')
self.assertTrue(hash(a[0]) == hash(a[1]))
self.assertTrue(hash(a[0]) == hash(b[0]))
self.assertTrue(hash(a[0]) != hash(b[1]))
+ self.assertTrue(hash(c[0]) == hash(a[0]) and c[0] == a[0])
class TestView(TestCase):
def test_basic(self):