numpy/numpy — pull request #4342 by seberg (2014-02-21 20:18:32+00:00)
Title: TST: do not use "ignore" to filter warnings

When a warning is ignored (or raised once) in python, the warnings
module will tag on a `__warningregistry__` dictionary to be able
to filter these warnings in the future. This is tagged on to the
current context, causing leakage to later calls (this is a bit
more complex, since where the registry ends up depends on the
layers between the original caller and warner).

In short, tests should typically not use ignore but catch the
warnings to avoid changing the user experience (or errors
on duplicate test runs).

Fixes an error on duplicate test runs (does not remove all
"ignores" which may change behaviour outside tests).
Closes gh-4340

--

tl;dr: fixes test reruns by not using "ignore". Didn't replace all ignores though, just the ones I thought may be offending here. Could replace more if you like.