summaryrefslogtreecommitdiff
path: root/numpy/core
diff options
context:
space:
mode:
authorDavid Cournapeau <cournape@gmail.com>2008-09-02 06:59:43 +0000
committerDavid Cournapeau <cournape@gmail.com>2008-09-02 06:59:43 +0000
commit87d85a0dbd8ec019a233ed921cd7cd2d9e6234c4 (patch)
tree925836910633daaee8f7e7790bbc14d327840385 /numpy/core
parent2312fcb6cdf6eea3c94b6354555bacecb6d413c3 (diff)
downloadnumpy-87d85a0dbd8ec019a233ed921cd7cd2d9e6234c4.tar.gz
Fix regression test #771 on 64 bits architecture.
The test assumed an item was 4 bytes. Use itemsize instead of harcoding 4 bytes per item.
Diffstat (limited to 'numpy/core')
-rw-r--r--numpy/core/tests/test_regression.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/tests/test_regression.py b/numpy/core/tests/test_regression.py
index b83530264..7fcf7f85a 100644
--- a/numpy/core/tests/test_regression.py
+++ b/numpy/core/tests/test_regression.py
@@ -847,7 +847,7 @@ class TestRegression(TestCase):
"""Ticket #771: strides are not set correctly when reshaping 0-sized
arrays"""
b = np.indices((0,3,4)).T.reshape(-1,3)
- assert_equal(b.strides, (12, 4))
+ assert_equal(b.strides, (3 * b.itemsize, b.itemsize))
def test_object_array_refcounting(self, level=rlevel):
"""Ticket #633"""