summaryrefslogtreecommitdiff
path: root/numpy/core
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/core')
-rw-r--r--numpy/core/tests/test_multiarray.py6
-rw-r--r--numpy/core/tests/test_numeric.py8
-rw-r--r--numpy/core/tests/test_regression.py2
-rw-r--r--numpy/core/tests/test_scalarmath.py2
4 files changed, 9 insertions, 9 deletions
diff --git a/numpy/core/tests/test_multiarray.py b/numpy/core/tests/test_multiarray.py
index feacffdd6..fc51f8cb3 100644
--- a/numpy/core/tests/test_multiarray.py
+++ b/numpy/core/tests/test_multiarray.py
@@ -1020,7 +1020,7 @@ class TestClip(TestCase):
assert np.all(x <= 4)
-class TestPutmask:
+class TestPutmask(object):
def tst_basic(self,x,T,mask,val):
np.putmask(x,mask,val)
assert np.all(x[mask] == T(val))
@@ -1066,7 +1066,7 @@ class TestPutmask:
pass
-class TestTake:
+class TestTake(object):
def tst_basic(self,x):
ind = range(x.shape[0])
assert_array_equal(x.take(ind, axis=0), x)
@@ -1330,7 +1330,7 @@ class TestIO(object):
in_foreign_locale(self.test_tofile_format)()
-class TestFromBuffer:
+class TestFromBuffer(object):
def tst_basic(self,buffer,expected,kwargs):
assert_array_equal(np.frombuffer(buffer,**kwargs),expected)
diff --git a/numpy/core/tests/test_numeric.py b/numpy/core/tests/test_numeric.py
index f46871373..348a7dd70 100644
--- a/numpy/core/tests/test_numeric.py
+++ b/numpy/core/tests/test_numeric.py
@@ -9,7 +9,7 @@ from numpy.testing.utils import WarningManager
from numpy.core.multiarray import dot as dot_
import warnings
-class Vec:
+class Vec(object):
def __init__(self,sequence=None):
if sequence is None:
sequence=[]
@@ -1039,7 +1039,7 @@ class TestClip(TestCase):
self.assertTrue(a2 is a)
-class TestAllclose:
+class TestAllclose(object):
rtol = 1e-5
atol = 1e-8
@@ -1283,7 +1283,7 @@ class TestCorrelateNew(_TestCorrelate):
z = np.correlate(y, x, 'full', old_behavior=self.old_behavior)
assert_array_almost_equal(z, r_z)
-class TestArgwhere:
+class TestArgwhere(object):
def test_2D(self):
x = np.arange(6).reshape((2, 3))
assert_array_equal(np.argwhere(x > 1),
@@ -1295,7 +1295,7 @@ class TestArgwhere:
def test_list(self):
assert_equal(np.argwhere([4, 0, 2, 1, 3]), [[0], [2], [3], [4]])
-class TestStringFunction:
+class TestStringFunction(object):
def test_set_string_function(self):
a = np.array([1])
np.set_string_function(lambda x: "FOO", repr=True)
diff --git a/numpy/core/tests/test_regression.py b/numpy/core/tests/test_regression.py
index 8ec22b8a2..8014628a0 100644
--- a/numpy/core/tests/test_regression.py
+++ b/numpy/core/tests/test_regression.py
@@ -804,7 +804,7 @@ class TestRegression(TestCase):
def test_mem_custom_float_to_array(self, level=rlevel):
"""Ticket 702"""
- class MyFloat:
+ class MyFloat(object):
def __float__(self):
return 1.0
diff --git a/numpy/core/tests/test_scalarmath.py b/numpy/core/tests/test_scalarmath.py
index 9061e61fc..b00164525 100644
--- a/numpy/core/tests/test_scalarmath.py
+++ b/numpy/core/tests/test_scalarmath.py
@@ -103,7 +103,7 @@ class TestConversion(TestCase):
# assert_equal( val, val2 )
-class TestRepr:
+class TestRepr(object):
def _test_type_repr(self, t):
finfo=np.finfo(t)
last_fraction_bit_idx = finfo.nexp + finfo.nmant