summaryrefslogtreecommitdiff
path: root/numpy/core
diff options
context:
space:
mode:
authorPauli Virtanen <pav@iki.fi>2008-05-08 08:02:15 +0000
committerPauli Virtanen <pav@iki.fi>2008-05-08 08:02:15 +0000
commit890c8cdef31619faf17ec59e105d8cd47c10fd85 (patch)
tree270241f2aebb786aa11549acf114a2a8a4980502 /numpy/core
parentbe0d6b02bcb575da26716eb82afa2801a04f4e84 (diff)
downloadnumpy-890c8cdef31619faf17ec59e105d8cd47c10fd85.tar.gz
Test for ticket #551 part of r5140
Diffstat (limited to 'numpy/core')
-rw-r--r--numpy/core/tests/test_regression.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/numpy/core/tests/test_regression.py b/numpy/core/tests/test_regression.py
index c28a7db3f..d0fe5f6c0 100644
--- a/numpy/core/tests/test_regression.py
+++ b/numpy/core/tests/test_regression.py
@@ -1016,6 +1016,14 @@ class TestRegression(NumpyTestCase):
"""Test for changeset r5065"""
assert_array_equal(np.array([np.nan]), np.asfarray([None]))
+ def check_dot_alignment_sse2(self, level=rlevel):
+ """Test for ticket #551, changeset r5140"""
+ x = np.zeros((30,40))
+ y = pickle.loads(pickle.dumps(x))
+ # y is now typically not aligned on a 8-byte boundary
+ z = np.ones((1, y.shape[0]))
+ # This shouldn't cause a segmentation fault:
+ np.dot(z, y)
if __name__ == "__main__":
NumpyTest().run()