diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2013-10-24 15:30:22 -0700 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2013-10-24 15:30:22 -0700 |
commit | a3e8c12ed88c6db2aa89cfbb7a69fc863e8a40dc (patch) | |
tree | c3fe316ad8bc6044f20e39abdb785b6219ef7507 /numpy/linalg/tests | |
parent | 8988715e1aea7b10b230115aecae029cf6e80d66 (diff) | |
parent | 3a01f4e11874be9db17fb24fa17c649fd45a8aff (diff) | |
download | numpy-a3e8c12ed88c6db2aa89cfbb7a69fc863e8a40dc.tar.gz |
Merge pull request #3965 from seberg/valgrind
MAINT: Initialize strides in NpyIter and silence valgrind
Diffstat (limited to 'numpy/linalg/tests')
-rw-r--r-- | numpy/linalg/tests/test_linalg.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/linalg/tests/test_linalg.py b/numpy/linalg/tests/test_linalg.py index d40157904..cc1404bf1 100644 --- a/numpy/linalg/tests/test_linalg.py +++ b/numpy/linalg/tests/test_linalg.py @@ -616,7 +616,7 @@ class TestLstsq(LinalgTestCase, LinalgNonsquareTestCase): expect_resids.shape = (1,) assert_equal(residuals.shape, expect_resids.shape) else: - expect_resids = type(x)([]) + expect_resids = np.array([]).view(type(x)) assert_almost_equal(residuals, expect_resids) assert_(np.issubdtype(residuals.dtype, np.floating)) assert_(imply(isinstance(b, matrix), isinstance(x, matrix))) |