diff options
author | Travis Oliphant <oliphant@enthought.com> | 2009-05-10 03:48:59 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2009-05-10 03:48:59 +0000 |
commit | 727434278079ab9e6f6c50c505f7372379ee4814 (patch) | |
tree | 2d4554457fdf53b6298caf2f02d6c5957bfa9a76 /numpy/ma/tests | |
parent | 762282558125d066198f319e5eb8d4f7c3031c4e (diff) | |
download | numpy-727434278079ab9e6f6c50c505f7372379ee4814.tar.gz |
Fix some failing tests due to name-space issues.
Diffstat (limited to 'numpy/ma/tests')
-rw-r--r-- | numpy/ma/tests/test_core.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/numpy/ma/tests/test_core.py b/numpy/ma/tests/test_core.py index 6038fa836..e994a67c6 100644 --- a/numpy/ma/tests/test_core.py +++ b/numpy/ma/tests/test_core.py @@ -1142,16 +1142,16 @@ class TestMaskedArrayAttributes(TestCase): def test_hardmask_oncemore_yay(self): "OK, yet another test of hardmask" "Make sure that harden_mask/soften_mask//unshare_mask retursn self" - a = ma.array([1,2,3], mask=[1, 0, 0]) + a = array([1,2,3], mask=[1, 0, 0]) b = a.harden_mask() assert_equal(a, b) b[0] = 0 assert_equal(a, b) - assert_equal(b, ma.array([1,2,3], mask=[1, 0, 0])) + assert_equal(b, array([1,2,3], mask=[1, 0, 0])) a = b.soften_mask() a[0] = 0 assert_equal(a, b) - assert_equal(b, ma.array([0,2,3], mask=[0, 0, 0])) + assert_equal(b, array([0,2,3], mask=[0, 0, 0])) def test_smallmask(self): @@ -1169,7 +1169,7 @@ class TestMaskedArrayAttributes(TestCase): def test_shrink_mask(self): "Tests .shrink_mask()" - a = ma.array([1,2,3], mask=[0, 0, 0]) + a = array([1,2,3], mask=[0, 0, 0]) b = a.shrink_mask() assert_equal(a, b) assert_equal(a.mask, nomask) |