summaryrefslogtreecommitdiff
path: root/numpy/lib/tests/test_recfunctions.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/lib/tests/test_recfunctions.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/lib/tests/test_recfunctions.py')
-rw-r--r--numpy/lib/tests/test_recfunctions.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/lib/tests/test_recfunctions.py b/numpy/lib/tests/test_recfunctions.py
index c261b9ebe..64dd9bb5f 100644
--- a/numpy/lib/tests/test_recfunctions.py
+++ b/numpy/lib/tests/test_recfunctions.py
@@ -399,11 +399,11 @@ class TestStackArrays(TestCase):
(_, x, _, _) = self.data
test = stack_arrays((x,))
assert_equal(test, x)
- self.failUnless(test is x)
+ self.assertTrue(test is x)
#
test = stack_arrays(x)
assert_equal(test, x)
- self.failUnless(test is x)
+ self.assertTrue(test is x)
#
def test_unnamed_fields(self):
"Tests combinations of arrays w/o named fields"