summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Belopolsky <a@enlnt.com>2015-03-30 13:39:22 -0400
committerAlexander Belopolsky <a@enlnt.com>2015-03-30 13:39:22 -0400
commitbf8d3329d43bf534e45cb8182a6d712138566cdc (patch)
tree8a89e3d748acf334fa285127bb890b67f6f25c1a
parent188ed4f314354f8e2f35937d205da5cd4ca1c175 (diff)
downloadnumpy-bf8d3329d43bf534e45cb8182a6d712138566cdc.tar.gz
Use Python 2.6 compatible assertions in tests.
-rw-r--r--numpy/ma/tests/test_core.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/ma/tests/test_core.py b/numpy/ma/tests/test_core.py
index e67889f37..807fc0ba6 100644
--- a/numpy/ma/tests/test_core.py
+++ b/numpy/ma/tests/test_core.py
@@ -2988,12 +2988,12 @@ class TestMaskedArrayMathMethods(TestCase):
fx = mx.filled(0)
r = mx.dot(mx)
assert_almost_equal(r.filled(0), fx.dot(fx))
- self.assertIs(r.mask, nomask)
+ assert_(r.mask is nomask)
fX = mX.filled(0)
r = mX.dot(mX)
assert_almost_equal(r.filled(0), fX.dot(fX))
- self.assertTrue(r.mask[1,3])
+ assert_(r.mask[1,3])
r1 = empty_like(r)
mX.dot(mX, r1)
assert_almost_equal(r, r1)