Open Akuli opened 6 months ago
Or the assert statement doesn't make sense here
?
Misleading yes, but why would you be doing assert True
? I could understand assert True == True
and the former giving an error like assert lacks conditional statement
.
this outputs:
The error message is misleading. The code does run, it just never fails the assert. Something like
condition of 'assert' is always True
would be much better.When the error message says "this code", it means the code for handling failed assertions. The code above is equivalent to: