bundles / numpy 2.5.0.dev0+git20251130.2de293a / numpy / testing / _private / utils / assert_no_warnings
function
numpy.testing._private.utils:assert_no_warnings
source: build-install/usr/lib/python3.14/site-packages/numpy/testing/_private/utils.py :2069
Signature
def assert_no_warnings ( * args , ** kwargs ) Summary
Fail if the given callable produces any warnings.
Extended Summary
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.
Parameters
func: callableThe callable to test.
\*args: ArgumentsArguments passed to func.
\*\*kwargs: KwargsKeyword arguments passed to func.
Returns
: The value returned by `func`.
Aliases
-
numpy.testing.assert_no_warnings