When you pass a tuple as the first argument in an assert statement, the assertion always evaluates as true and therefore never fails.
If you want to change selection, open document below and click on "Move attachment"
Assert Statements in Python – dbader.org valuate to true. I’ve been bitten by this myself in the past. I wrote a longer article about this specific issue you can check out by clicking here. Alternatively, here’s the executive summary: <span>When you pass a tuple as the first argument in an assert statement, the assertion always evaluates as true and therefore never fails. For example, this assertion will never fail: assert(1 == 2, 'This should fail') This has to do with non-empty tuples always being truthy in Python. If you pass a tuple to an assert stat
last reprioritisation on
reading queue position [%]
started reading on
finished reading on
Do you want to join discussion? Click here to log in or create user.