[Numpy-svn] [numpy/numpy] 28971c: ENH: add clear_and_catch_warnings context manager

GitHub noreply at github.com
Sat Mar 14 22:22:33 EDT 2015


  Branch: refs/heads/master
  Home:   https://github.com/numpy/numpy
  Commit: 28971cda67d22a107ceb50514eb9d53765c0258b
      https://github.com/numpy/numpy/commit/28971cda67d22a107ceb50514eb9d53765c0258b
  Author: Matthew Brett <matthew.brett at gmail.com>
  Date:   2015-03-14 (Sat, 14 Mar 2015)

  Changed paths:
    M numpy/testing/tests/test_utils.py
    M numpy/testing/utils.py

  Log Message:
  -----------
  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.


  Commit: 4c9e5bd362643aadfc027184682c067aa2f10cda
      https://github.com/numpy/numpy/commit/4c9e5bd362643aadfc027184682c067aa2f10cda
  Author: Matthew Brett <matthew.brett at gmail.com>
  Date:   2015-03-14 (Sat, 14 Mar 2015)

  Changed paths:
    M doc/release/1.10.0-notes.rst

  Log Message:
  -----------
  DOC: `clear_and_catch_warnings` release note

Add release note on `clear_and_catch_warnings`.


  Commit: c60f1c6d944b25c5a001cf80e9b65dd5d44ed85d
      https://github.com/numpy/numpy/commit/c60f1c6d944b25c5a001cf80e9b65dd5d44ed85d
  Author: Charles Harris <charlesr.harris at gmail.com>
  Date:   2015-03-14 (Sat, 14 Mar 2015)

  Changed paths:
    M doc/release/1.10.0-notes.rst
    M numpy/testing/tests/test_utils.py
    M numpy/testing/utils.py

  Log Message:
  -----------
  Merge pull request #5682 from matthew-brett/add-clear-catch-warnings-cm

MRG: new clear_catch_warnings context manager


Compare: https://github.com/numpy/numpy/compare/19d861edd87e...c60f1c6d944b


More information about the Numpy-svn mailing list