diff options
author | Stefan van der Walt <stefan@sun.ac.za> | 2008-01-10 19:09:35 +0000 |
---|---|---|
committer | Stefan van der Walt <stefan@sun.ac.za> | 2008-01-10 19:09:35 +0000 |
commit | 2bf5fa1363944408857e368341c4299b121f928c (patch) | |
tree | 9e759d5dd86b68c5033fd2b0d37bfde12fc25c64 /numpy/ma/tests | |
parent | 80f6f5062022104f3a57de05cb119df23c2b5de4 (diff) | |
download | numpy-2bf5fa1363944408857e368341c4299b121f928c.tar.gz |
Fix inplace test.
Diffstat (limited to 'numpy/ma/tests')
-rw-r--r-- | numpy/ma/tests/test_core.py | 6 |
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 |