diff options
Diffstat (limited to 'numpy/matrixlib/tests/test_defmatrix.py')
-rw-r--r-- | numpy/matrixlib/tests/test_defmatrix.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/numpy/matrixlib/tests/test_defmatrix.py b/numpy/matrixlib/tests/test_defmatrix.py index bc2b747e7..0cf284b64 100644 --- a/numpy/matrixlib/tests/test_defmatrix.py +++ b/numpy/matrixlib/tests/test_defmatrix.py @@ -31,6 +31,10 @@ class TestCtor(TestCase): mvec = matrix(vec) assert_(mvec.shape == (1,5)) + def test_exceptions(self): + # Check for TypeError when called with invalid string data. + assert_raises(TypeError, matrix, "invalid") + def test_bmat_nondefault_str(self): A = array([[1,2],[3,4]]) B = array([[5,6],[7,8]]) |