diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2010-02-21 01:55:27 +0000 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2010-02-21 01:55:27 +0000 |
commit | 69f7f4c7e3ca4af2ae79921895efa1c2a6b11c41 (patch) | |
tree | 993228f041e983224ef4b6fca4535d69626fe0d5 /numpy/lib/tests/test_function_base.py | |
parent | 051165fb4557b67a1f50e81ad8cfb99efeeb0641 (diff) | |
download | numpy-69f7f4c7e3ca4af2ae79921895efa1c2a6b11c41.tar.gz |
DEP: Fix more files for unittest deprecated functions. It isn't clear why these
tests didn't issue deprecation warnings. Are they being run?
Diffstat (limited to 'numpy/lib/tests/test_function_base.py')
-rw-r--r-- | numpy/lib/tests/test_function_base.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/numpy/lib/tests/test_function_base.py b/numpy/lib/tests/test_function_base.py index b31453292..078c03790 100644 --- a/numpy/lib/tests/test_function_base.py +++ b/numpy/lib/tests/test_function_base.py @@ -198,9 +198,9 @@ class TestProd(TestCase): a = array(ba,ctype) a2 = array(ba2,ctype) if ctype in ['1', 'b']: - self.failUnlessRaises(ArithmeticError, prod, a) - self.failUnlessRaises(ArithmeticError, prod, a2, 1) - self.failUnlessRaises(ArithmeticError, prod, a) + self.assertRaises(ArithmeticError, prod, a) + self.assertRaises(ArithmeticError, prod, a2, 1) + self.assertRaises(ArithmeticError, prod, a) else: assert_equal(prod(a,axis=0),26400) assert_array_equal(prod(a2,axis=0), @@ -216,9 +216,9 @@ class TestCumprod(TestCase): a = array(ba,ctype) a2 = array(ba2,ctype) if ctype in ['1', 'b']: - self.failUnlessRaises(ArithmeticError, cumprod, a) - self.failUnlessRaises(ArithmeticError, cumprod, a2, 1) - self.failUnlessRaises(ArithmeticError, cumprod, a) + self.assertRaises(ArithmeticError, cumprod, a) + self.assertRaises(ArithmeticError, cumprod, a2, 1) + self.assertRaises(ArithmeticError, cumprod, a) else: assert_array_equal(cumprod(a,axis=-1), array([1, 2, 20, 220, |