assert_not_warnings#
- astropop.testing.assert_not_warnings(*args, **kwargs)#
Fail if the given callable produces any warnings.
If called with all arguments omitted, may be used as a context manager:
with assert_no_warnings(): do_something()
The ability to be used as a context manager is new in NumPy v1.11.0.
Added in version 1.7.0.
- Parameters:
- funccallable
The callable to test.
- *argsArguments
Arguments passed to
func.- **kwargsKwargs
Keyword arguments passed to
func.
- Returns:
- The value returned by
func.
- The value returned by