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