numpy.testing.assert_raises_regex()

numpy.testing.assert_raises_regex

numpy.testing.assert_raises_regex(exception_class, expected_regexp, callable_obj=None, *args, **kwargs) [source]

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.

Name of this function adheres to Python 3.2+ reference, but should work in all versions down to 2.6.

© 2008–2016 NumPy Developers
Licensed under the NumPy License.
https://docs.scipy.org/doc/numpy-1.11.0/reference/generated/numpy.testing.assert_raises_regex.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部