summaryrefslogtreecommitdiff
path: root/numpy/core/arrayprint.py
diff options
context:
space:
mode:
authorMatthew Brett <matthew.brett@gmail.com>2015-03-14 18:32:01 -0700
committerMatthew Brett <matthew.brett@gmail.com>2015-03-14 18:47:45 -0700
commit28971cda67d22a107ceb50514eb9d53765c0258b (patch)
tree42f37efad0b1eb9965a467eade7cf5cab136509e /numpy/core/arrayprint.py
parenta866fdd2c9481de18241a27778679013042d5349 (diff)
downloadnumpy-28971cda67d22a107ceb50514eb9d53765c0258b.tar.gz
ENH: add clear_and_catch_warnings context manager
Add context manager for tests that, on entry, clears record of any previous warnings from given modules, so that any warning raised in the context block does get raised, rather than suppressed by a previous warning causing an entry in the `__warningregistry_`` of the module.
Diffstat (limited to 'numpy/core/arrayprint.py')
0 files changed, 0 insertions, 0 deletions