MAINT: be robust to numpy's DeprecationWarning

numpy 1.9 raises a lot of 'VisibleDeprecationWarning', which breaks our
test suite