8.1.11. numpy.testing.assert_no_warnings

numpy.testing.assert_no_warnings(func, *args, **kw)[source]

Fail if the given callable produces any warnings.

New in version 1.7.0.

Parameters:

func : callable

The callable to test.

*args : Arguments

Arguments passed to func.

**kwargs : Kwargs

Keyword arguments passed to func.

Returns:

The value returned by func.