[Numpy-svn] r5148 - branches/1.1.x/numpy/core/tests

numpy-svn at scipy.org numpy-svn at scipy.org
Thu May 8 04:09:01 EDT 2008


Author: ptvirtan
Date: 2008-05-08 03:08:52 -0500 (Thu, 08 May 2008)
New Revision: 5148

Modified:
   branches/1.1.x/numpy/core/tests/test_regression.py
Log:
Test for ticket #551 part of r5141

Modified: branches/1.1.x/numpy/core/tests/test_regression.py
===================================================================
--- branches/1.1.x/numpy/core/tests/test_regression.py	2008-05-08 08:02:15 UTC (rev 5147)
+++ branches/1.1.x/numpy/core/tests/test_regression.py	2008-05-08 08:08:52 UTC (rev 5148)
@@ -1016,6 +1016,14 @@
         """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 r5141"""
+        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()




More information about the Numpy-svn mailing list