diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2011-04-05 21:00:10 -0600 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2011-04-05 21:02:29 -0600 |
commit | 966038e30b21e62ab7729527f3f0bba6e18eb805 (patch) | |
tree | 084bd7b40be49614b3770657ceaf1b539adbf964 /numpy/matrixlib/tests/test_regression.py | |
parent | 4cb2eb4df95740661d7f1944451d2c1cb3482bcf (diff) | |
download | numpy-966038e30b21e62ab7729527f3f0bba6e18eb805.tar.gz |
STY: Replace assert by assert_ in tests. There remain 124 uses of
assert in non-testing files that should be checked for correctness.
Diffstat (limited to 'numpy/matrixlib/tests/test_regression.py')
-rw-r--r-- | numpy/matrixlib/tests/test_regression.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/numpy/matrixlib/tests/test_regression.py b/numpy/matrixlib/tests/test_regression.py index e85d34b23..ba0133dfd 100644 --- a/numpy/matrixlib/tests/test_regression.py +++ b/numpy/matrixlib/tests/test_regression.py @@ -12,11 +12,11 @@ class TestRegression(TestCase): def test_matrix_properties(self,level=rlevel): """Ticket #125""" a = np.matrix([1.0],dtype=float) - assert(type(a.real) is np.matrix) - assert(type(a.imag) is np.matrix) + assert_(type(a.real) is np.matrix) + assert_(type(a.imag) is np.matrix) c,d = np.matrix([0.0]).nonzero() - assert(type(c) is np.matrix) - assert(type(d) is np.matrix) + assert_(type(c) is np.matrix) + assert_(type(d) is np.matrix) def test_matrix_multiply_by_1d_vector(self, level=rlevel) : """Ticket #473""" |