summaryrefslogtreecommitdiff
path: root/numpy/matrixlib/tests/test_regression.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/matrixlib/tests/test_regression.py')
-rw-r--r--numpy/matrixlib/tests/test_regression.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/numpy/matrixlib/tests/test_regression.py b/numpy/matrixlib/tests/test_regression.py
index 9831f8131..4bbd44dcf 100644
--- a/numpy/matrixlib/tests/test_regression.py
+++ b/numpy/matrixlib/tests/test_regression.py
@@ -9,14 +9,14 @@ class TestRegression(TestCase):
def test_kron_matrix(self,level=rlevel):
"""Ticket #71"""
x = np.matrix('[1 0; 1 0]')
- assert_equal(type(np.kron(x,x)),type(x))
+ assert_equal(type(np.kron(x, x)), type(x))
def test_matrix_properties(self,level=rlevel):
"""Ticket #125"""
- a = np.matrix([1.0],dtype=float)
+ a = np.matrix([1.0], dtype=float)
assert_(type(a.real) is np.matrix)
assert_(type(a.imag) is np.matrix)
- c,d = np.matrix([0.0]).nonzero()
+ c, d = np.matrix([0.0]).nonzero()
assert_(type(c) is np.matrix)
assert_(type(d) is np.matrix)
@@ -25,10 +25,10 @@ class TestRegression(TestCase):
def mul() :
np.mat(np.eye(2))*np.ones(2)
- self.assertRaises(ValueError,mul)
+ self.assertRaises(ValueError, mul)
def test_matrix_std_argmax(self,level=rlevel):
"""Ticket #83"""
- x = np.asmatrix(np.random.uniform(0,1,(3,3)))
+ x = np.asmatrix(np.random.uniform(0, 1, (3, 3)))
self.assertEqual(x.std().shape, ())
self.assertEqual(x.argmax().shape, ())