summaryrefslogtreecommitdiff
path: root/numpy/matrixlib/tests/test_regression.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2010-02-20 22:31:25 +0000
committerCharles Harris <charlesr.harris@gmail.com>2010-02-20 22:31:25 +0000
commit051165fb4557b67a1f50e81ad8cfb99efeeb0641 (patch)
tree01d6eec23902c1f0096f1dd8fef112810c72a1f7 /numpy/matrixlib/tests/test_regression.py
parent8f2413a2e2ac19e699c9fd6a0344fcb845abc1d2 (diff)
downloadnumpy-051165fb4557b67a1f50e81ad8cfb99efeeb0641.tar.gz
DEP: Fix deprecation warnings in Python 3.1. The warnings come from the unittest
module. The fix should be good for Python >= 2.4 and used the following sed script: s/\<failUnless\>/assertTrue/g s/\<failIf\>/assertFalse/g s/\<failUnlessEqual\>/assertEqual/g s/\<failUnlessRaises\>/assertRaises/g
Diffstat (limited to 'numpy/matrixlib/tests/test_regression.py')
-rw-r--r--numpy/matrixlib/tests/test_regression.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/matrixlib/tests/test_regression.py b/numpy/matrixlib/tests/test_regression.py
index e0dd745ef..e85d34b23 100644
--- a/numpy/matrixlib/tests/test_regression.py
+++ b/numpy/matrixlib/tests/test_regression.py
@@ -23,7 +23,7 @@ class TestRegression(TestCase):
def mul() :
np.mat(np.eye(2))*np.ones(2)
- self.failUnlessRaises(ValueError,mul)
+ self.assertRaises(ValueError,mul)
def test_matrix_std_argmax(self,level=rlevel):
"""Ticket #83"""