| 1070 | assert_equal(x, np.array([1], dtype=dtype)) |
| 1071 | |
| 1072 | def test_dot_alignment_sse2(self): |
| 1073 | # Test for ticket #551, changeset r5140 |
| 1074 | x = np.zeros((30, 40)) |
| 1075 | for proto in range(2, pickle.HIGHEST_PROTOCOL + 1): |
| 1076 | y = pickle.loads(pickle.dumps(x, protocol=proto)) |
| 1077 | # y is now typically not aligned on an 8-byte boundary |
| 1078 | z = np.ones((1, y.shape[0])) |
| 1079 | # This shouldn't cause a segmentation fault: |
| 1080 | np.dot(z, y) |
| 1081 | |
| 1082 | @pytest.mark.filterwarnings( |
| 1083 | "ignore:.*align should be passed:numpy.exceptions.VisibleDeprecationWarning", |