[Numpy-svn] r5147 - trunk/numpy/core/tests

numpy-svn at scipy.org numpy-svn at scipy.org
Thu May 8 04:02:25 EDT 2008


Author: ptvirtan
Date: 2008-05-08 03:02:15 -0500 (Thu, 08 May 2008)
New Revision: 5147

Modified:
   trunk/numpy/core/tests/test_regression.py
Log:
Test for ticket #551 part of r5140

Modified: trunk/numpy/core/tests/test_regression.py
===================================================================
--- trunk/numpy/core/tests/test_regression.py	2008-05-08 00:33:43 UTC (rev 5146)
+++ trunk/numpy/core/tests/test_regression.py	2008-05-08 08:02:15 UTC (rev 5147)
@@ -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 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()




More information about the Numpy-svn mailing list