summaryrefslogtreecommitdiff
path: root/numpy/testing
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2011-04-05 13:28:50 -0600
committerCharles Harris <charlesr.harris@gmail.com>2011-04-05 13:28:50 -0600
commit2812406e48a7ffa011dc60ed37dda6131c08ae3d (patch)
treeb1aed2c18202686fde71124ebaa4771d52b6afce /numpy/testing
parent06dc70263debc5fbbb3e58592c91ca24766b3e3a (diff)
downloadnumpy-2812406e48a7ffa011dc60ed37dda6131c08ae3d.tar.gz
STY: Replace remaining old style classes with classes subclassing object.
Diffstat (limited to 'numpy/testing')
-rwxr-xr-xnumpy/testing/print_coercion_tables.py2
-rw-r--r--numpy/testing/utils.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/numpy/testing/print_coercion_tables.py b/numpy/testing/print_coercion_tables.py
index 7b5320d7e..d87544987 100755
--- a/numpy/testing/print_coercion_tables.py
+++ b/numpy/testing/print_coercion_tables.py
@@ -4,7 +4,7 @@
import numpy as np
# Generic object that can be added, but doesn't do anything else
-class GenericObject:
+class GenericObject(object):
def __init__(self, v):
self.v = v
diff --git a/numpy/testing/utils.py b/numpy/testing/utils.py
index 01ce31c4a..a2d3119c5 100644
--- a/numpy/testing/utils.py
+++ b/numpy/testing/utils.py
@@ -1380,7 +1380,7 @@ class WarningMessage(object):
"line : %r}" % (self.message, self._category_name,
self.filename, self.lineno, self.line))
-class WarningManager:
+class WarningManager(object):
"""
A context manager that copies and restores the warnings filter upon
exiting the context.