summaryrefslogtreecommitdiff
path: root/numpy/f2py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2011-04-05 13:27:24 -0600
committerCharles Harris <charlesr.harris@gmail.com>2011-04-05 13:27:24 -0600
commit06dc70263debc5fbbb3e58592c91ca24766b3e3a (patch)
treec483be5035343dd2968eadb8851c676cedb121ff /numpy/f2py
parentcff9ccb8340d7f4efcd721e1fd9ce36be27e337d (diff)
downloadnumpy-06dc70263debc5fbbb3e58592c91ca24766b3e3a.tar.gz
STY: Replace old style classes in tests with classes subclassing object.
Diffstat (limited to 'numpy/f2py')
-rw-r--r--numpy/f2py/tests/test_array_from_pyobj.py4
-rw-r--r--numpy/f2py/tests/test_callback.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/numpy/f2py/tests/test_array_from_pyobj.py b/numpy/f2py/tests/test_array_from_pyobj.py
index 488fd4db5..ccf237ee1 100644
--- a/numpy/f2py/tests/test_array_from_pyobj.py
+++ b/numpy/f2py/tests/test_array_from_pyobj.py
@@ -51,7 +51,7 @@ def flags2names(flags):
info.append(flagname)
return info
-class Intent:
+class Intent(object):
def __init__(self,intent_list=[]):
self.intent_list = intent_list[:]
flags = 0
@@ -166,7 +166,7 @@ class Type(object):
types.append(Type(name))
return types
-class Array:
+class Array(object):
def __init__(self,typ,dims,intent,obj):
self.type = typ
self.dims = dims
diff --git a/numpy/f2py/tests/test_callback.py b/numpy/f2py/tests/test_callback.py
index 7f0107fd5..6a201a951 100644
--- a/numpy/f2py/tests/test_callback.py
+++ b/numpy/f2py/tests/test_callback.py
@@ -59,7 +59,7 @@ cf2py intent(out) a
assert_( r==11,`r`)
r = t(self.module.func0._cpointer)
assert_( r==11,`r`)
- class A:
+ class A(object):
def __call__(self):
return 7
def mth(self):