diff options
author | Sebastian Berg <sebastian@sipsolutions.net> | 2014-02-21 21:13:29 +0100 |
---|---|---|
committer | Sebastian Berg <sebastian@sipsolutions.net> | 2014-02-21 21:13:29 +0100 |
commit | fd399aaee5b703744f508fb2ce4718e1f4bc8984 (patch) | |
tree | 956f5b80e179b8639b3cf962a909ac88ede60c70 /numpy/polynomial/polyutils.py | |
parent | 8997167e0de90b7132787ff869ba7988783bb133 (diff) | |
download | numpy-fd399aaee5b703744f508fb2ce4718e1f4bc8984.tar.gz |
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
Diffstat (limited to 'numpy/polynomial/polyutils.py')
0 files changed, 0 insertions, 0 deletions