summaryrefslogtreecommitdiff
path: root/numpy/ma/tests
diff options
context:
space:
mode:
authorpierregm <pierregm@localhost>2008-04-20 22:58:22 +0000
committerpierregm <pierregm@localhost>2008-04-20 22:58:22 +0000
commit462f65aab4800237ad5c2da675010856da4e945c (patch)
tree0541672a49be11ef0fd1a3fc2291ca053e7dbcbc /numpy/ma/tests
parent8c663313de36e860bbfea0909de181d330bfdfc7 (diff)
downloadnumpy-462f65aab4800237ad5c2da675010856da4e945c.tar.gz
mrecords: clean-up
core: MaskedArray.__setitem__ : when hardmask is False, force the data to be updated before the mask. core: MaskedArray.round_ : fixed to keep the dates on TimeSeries core: round : simplified
Diffstat (limited to 'numpy/ma/tests')
-rw-r--r--numpy/ma/tests/test_core.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/numpy/ma/tests/test_core.py b/numpy/ma/tests/test_core.py
index bdbe896e7..520730191 100644
--- a/numpy/ma/tests/test_core.py
+++ b/numpy/ma/tests/test_core.py
@@ -609,6 +609,14 @@ class TestMA(NumpyTestCase):
#........................
def test_oddfeatures_3(self):
"""Tests some generic features."""
+ atest = array([10], mask=True)
+ btest = array([20])
+ idx = atest.mask
+ atest[idx] = btest[idx]
+ assert_equal(atest,[20])
+ #........................
+ def test_oddfeatures_4(self):
+ """Tests some generic features."""
atest = ones((10,10,10), dtype=float_)
btest = zeros(atest.shape, MaskType)
ctest = masked_where(btest,atest)