Test and fix line endings issue #2133.

python does not need parens for assert (it's not a function call, it's an intrinsic, `assert x == y` works)