summaryrefslogtreecommitdiff
path: root/numpy/ma/tests
diff options
context:
space:
mode:
authorStefan van der Walt <stefan@sun.ac.za>2008-01-10 19:09:35 +0000
committerStefan van der Walt <stefan@sun.ac.za>2008-01-10 19:09:35 +0000
commit2bf5fa1363944408857e368341c4299b121f928c (patch)
tree9e759d5dd86b68c5033fd2b0d37bfde12fc25c64 /numpy/ma/tests
parent80f6f5062022104f3a57de05cb119df23c2b5de4 (diff)
downloadnumpy-2bf5fa1363944408857e368341c4299b121f928c.tar.gz
Fix inplace test.
Diffstat (limited to 'numpy/ma/tests')
-rw-r--r--numpy/ma/tests/test_core.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/numpy/ma/tests/test_core.py b/numpy/ma/tests/test_core.py
index 4009c3ded..17ea1bf5a 100644
--- a/numpy/ma/tests/test_core.py
+++ b/numpy/ma/tests/test_core.py
@@ -35,9 +35,9 @@ restore_path()
class TestNoMask(NumpyTestCase):
def test_no_inplace(self):
x = nomask
- def iadd(x):
- x += 1
- self.failUnlessRaises(ValueError,iadd,x)
+ y = x
+ x += 1
+ assert x != y
def test_no_copy(self):
x = nomask