⬅︎ Back to To assert or assertEqual in Python unit testing
This is the real reason why, good point.
"assert" statements aren't run when Python is run in "-O" (optimize) mode. That's about the only reason to not do this.
Comment
This is the real reason why, good point.
Parent comment
"assert" statements aren't run when Python is run in "-O" (optimize) mode. That's about the only reason to not do this.