diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2011-04-05 13:27:24 -0600 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2011-04-05 13:27:24 -0600 |
commit | 06dc70263debc5fbbb3e58592c91ca24766b3e3a (patch) | |
tree | c483be5035343dd2968eadb8851c676cedb121ff /numpy/linalg | |
parent | cff9ccb8340d7f4efcd721e1fd9ce36be27e337d (diff) | |
download | numpy-06dc70263debc5fbbb3e58592c91ca24766b3e3a.tar.gz |
STY: Replace old style classes in tests with classes subclassing object.
Diffstat (limited to 'numpy/linalg')
-rw-r--r-- | numpy/linalg/tests/test_build.py | 2 | ||||
-rw-r--r-- | numpy/linalg/tests/test_linalg.py | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/numpy/linalg/tests/test_build.py b/numpy/linalg/tests/test_build.py index 6b6c24d61..e9d52c876 100644 --- a/numpy/linalg/tests/test_build.py +++ b/numpy/linalg/tests/test_build.py @@ -8,7 +8,7 @@ from numpy.testing import TestCase, dec from numpy.compat import asbytes_nested -class FindDependenciesLdd: +class FindDependenciesLdd(object): def __init__(self): self.cmd = ['ldd'] diff --git a/numpy/linalg/tests/test_linalg.py b/numpy/linalg/tests/test_linalg.py index cccd51d1f..e1aa4afb8 100644 --- a/numpy/linalg/tests/test_linalg.py +++ b/numpy/linalg/tests/test_linalg.py @@ -22,7 +22,7 @@ def assert_almost_equal(a, b, **kw): decimal = 12 old_assert_almost_equal(a, b, decimal=decimal, **kw) -class LinalgTestCase: +class LinalgTestCase(object): def test_single(self): a = array([[1.,2.], [3.,4.]], dtype=single) b = array([2., 1.], dtype=single) @@ -80,7 +80,7 @@ class LinalgTestCase: self.do(a, b) -class LinalgNonsquareTestCase: +class LinalgNonsquareTestCase(object): def test_single_nsq_1(self): a = array([[1.,2.,3.], [3.,4.,6.]], dtype=single) b = array([2., 1.], dtype=single) @@ -240,7 +240,7 @@ class TestLstsq(LinalgTestCase, LinalgNonsquareTestCase, TestCase): assert imply(isinstance(b, matrix), isinstance(x, matrix)) assert imply(isinstance(b, matrix), isinstance(residuals, matrix)) -class TestMatrixPower: +class TestMatrixPower(object): R90 = array([[0,1],[-1,0]]) Arb22 = array([[4,-7],[-2,10]]) noninv = array([[1,0],[0,0]]) |