a2rl.utils.force_assert#
- a2rl.utils.force_assert(condition, msg=None)[source]#
Raise
AssertionError
whencondition
isFalse
.Use this judiciously (and conciously) when you want to always enforce assertion checks, even when Python runs in the
optimized mode
(which ignores the assert