scikit-learn/scikit-learn — pull request #928 by yarikoptic (2012-07-04 04:41:16+00:00)
Title: ENH do not fail the test reslying on numpy div 0 warnings if those are not spit out by numpy in general

email will follow on the mailing list but the reason is simple

```
$> python -c 'import numpy as np; from platform import platform; print np.__version__, platform(); 1.0 / np.array([0.])'
1.6.2 Linux-3.1.0-1-amd64-x86_64-with-debian-wheezy-sid
-c:1: RuntimeWarning: divide by zero encountered in divide

$> python -c 'import numpy as np; from platform import platform; print np.__version__, platform(); 1.0 / np.array([0.])'
1.4.1 Linux-2.6.32-5-amd64-x86_64-with-debian-6.0.4

(sid)yoh@abel:~$ python -c 'import numpy as np; from platform import platform; print np.__version__, platform(); 1.0 / np.array([0.])'
1.6.2 Linux-2.6.32-armv5tel-with-debian-wheezy-sid
```

i.e. apparently at least this warning is not reliably provided by numpy across releases/architectures