8.1.1. numpy.testing.assert¶
-
numpy.testing.assert_(val, msg='')[source]¶ Assert that works in release mode. Accepts callable msg to allow deferring evaluation until failure.
The Python built-in
assertdoes not work when executing code in optimized mode (the-Oflag) - no byte-code is generated for it.For documentation on usage, refer to the Python documentation.