Careful when using Python's `assert` statement: Normally you can use parentheses to wrap long lines in Python without using backslashes. For `assert` it doesn't work:

assert(some_condition,
"Some description")

This never fails, as Python's `assert` seens an `assert statement with a tuple as condition. This really has to be written like this:

assert some_condition, \
"Some description"

I just fell into that trap for you.

#Python #Assert #Mistakes

@taschenorakel alternatively:

assert some_condition, (
"Some description"
)

@zyzzyxdonta That's actually how I settled this case after tooting this.