pytest-dev / unittest2pytest

helps rewriting Python `unittest` test-cases into `pytest` test-cases
GNU General Public License v3.0
128 stars 27 forks source link

Parenthesize some arguments #11

Closed gqmelo closed 8 years ago

gqmelo commented 8 years ago

When arguments are formed by in, not and other keywords, the evaluation of converted statement might have a different precedence or even generate a syntax error. E.g. assert True == not False

htgoebel commented 8 years ago

Thanks.