Skip to content

Commit

Permalink
test_set_fields: filter out the warning
Browse files Browse the repository at this point in the history
  • Loading branch information
pierregm committed May 22, 2008
1 parent 35c2f9f commit e7e2cad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions numpy/ma/tests/test_mrecords.py
Expand Up @@ -126,6 +126,8 @@ def test_set_fields(self):
rdata = data.view(MaskedRecords)
val = ma.array([10,20,30], mask=[1,0,0])
#
import warnings
warnings.simplefilter("ignore")
rdata['num'] = val
assert_equal(rdata.num, val)
assert_equal(rdata.num.mask, [1,0,0])
Expand Down

0 comments on commit e7e2cad

Please sign in to comment.