[ Web Proxy ]
URL:
Viewing: https://numpy.org/doc/stable/reference/generated/../c-api/../generated/numpy.testing.assert_.html [Back]  [Original]

numpy.testing.assert_ — NumPy v2.5 Manual
Back to top
Search the docs ...:

numpy.testing.assert_#

testing.assert_(val, msg='')[source]#

Assert that works in release mode. Accepts callable msg to allow deferring evaluation until failure.

The Python built-in assert does not work when executing code in optimized mode (the -O flag) - no byte-code is generated for it.

For documentation on usage, refer to the Python documentation.


Web Proxy Viewer  |  New URL  |  Original Page