{ } Raw JSON

bundles / numpy 2.4.4 / numpy / testing / _private / utils / assert_raises_regex

function

numpy.testing._private.utils:assert_raises_regex

source: /numpy/testing/_private/utils.py :1529

Summary

Fail unless an exception of class exception_class and with message that matches expected_regexp is thrown by callable when invoked with arguments args and keyword arguments kwargs.

Extended Summary

Alternatively, can be used as a context manager like assert_raises.

Aliases

  • numpy.testing.assert_raises_regex