summaryrefslogtreecommitdiff
path: root/numpy/linalg/tests
diff options
context:
space:
mode:
authorEric Wieser <wieser.eric@gmail.com>2016-12-12 14:30:11 +0000
committerEric Wieser <wieser.eric@gmail.com>2016-12-19 14:32:17 +0000
commit6ceb8a4e64b1e934d6f9db7ce8a341843950fa56 (patch)
tree50d17abb740c43c36096646bb280b6af857ff100 /numpy/linalg/tests
parenteb435382047da8e0b09b36f5218d7507064edbfb (diff)
downloadnumpy-6ceb8a4e64b1e934d6f9db7ce8a341843950fa56.tar.gz
TST: Correct empty square test case to actually be square
atleast_2d(array([], dtype=double)) returns an array of shape (1, 0), not (0, 0)
Diffstat (limited to 'numpy/linalg/tests')
-rw-r--r--numpy/linalg/tests/test_linalg.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/numpy/linalg/tests/test_linalg.py b/numpy/linalg/tests/test_linalg.py
index a353271de..2d90ca6cf 100644
--- a/numpy/linalg/tests/test_linalg.py
+++ b/numpy/linalg/tests/test_linalg.py
@@ -103,9 +103,9 @@ SQUARE_CASES = [
LinalgCase("cdouble_2",
array([[1. + 2j, 2 + 3j], [3 + 4j, 4 + 5j]], dtype=cdouble),
array([[2. + 1j, 1. + 2j, 1 + 3j], [1 - 2j, 1 - 3j, 1 - 6j]], dtype=cdouble)),
- LinalgCase("empty",
- atleast_2d(array([], dtype=double)),
- atleast_2d(array([], dtype=double)),
+ LinalgCase("0x0",
+ np.empty((0, 0), dtype=double),
+ np.empty((0, 0), dtype=double),
linalg.LinAlgError),
LinalgCase("8x8",
np.random.rand(8, 8),