summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalf Gommers <ralf.gommers@googlemail.com>2011-04-03 16:19:13 +0200
committerRalf Gommers <ralf.gommers@googlemail.com>2011-04-03 16:19:13 +0200
commit0d6fee5295a866c9c062a04d33a4a17b4a7781fe (patch)
tree0751c071a4e5544cdcffea18294a1605570349e7
parent7aa887c0cee8cc6704615d16ee1e7f47753fe9c6 (diff)
downloadnumpy-0d6fee5295a866c9c062a04d33a4a17b4a7781fe.tar.gz
BUG: fix test_scalarmath.py, don't use TestCase subclass for geenrator test.
-rw-r--r--numpy/core/tests/test_scalarmath.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/core/tests/test_scalarmath.py b/numpy/core/tests/test_scalarmath.py
index 76220d82d..7e249e738 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(TestCase):
+class TestRepr():
def _test_type_repr(self, t):
finfo=np.finfo(t)
last_fraction_bit_idx = finfo.nexp + finfo.nmant
@@ -133,7 +133,7 @@ class TestRepr(TestCase):
# long double test cannot work, because eval goes through a python
# float
for t in [np.float32, np.float64]:
- yield test_float_repr, t
+ yield self._test_type_repr, t
if __name__ == "__main__":
run_module_suite()