This is a well-known behaviour, though not exactly intuitive, behaviour of Squish. Your int
call doesn't use the Python int
function but rather invokes the int
constructor for constructing an integer which can be passed to methods in the application under test (setWidth
or so). I.e. Squish overrides the meaning of int
.
You can use
import __builtin__
a = 12
b = __builtin__.int(24/3)
x = (a < b)
to enforce getting the Python int
.