――――――――――――――――――――――――― ERROR collecting test_example.py ―――――――――――――――――――――――――
../venv/lib/python2.7/site-packages/pytest-2.8.7-py2.7.egg/_pytest/python.py:610:
in _importtestmodule
mod = self.fspath.pyimport(ensuresyspath=importmode)
../venv/lib/python2.7/site-packages/py-1.4.31-py2.7.egg/py/_path/local.py:650:
in pyimport
__import__(modname)
E File
"/home/user/unittest2pytest-tmp/result/test_example.py",
line 6
E assert True == True, 'some %s message' %
E ^
E SyntaxError: invalid syntax
Another example of line wrapping causing problems is this:
Consider following testcase:
The transformation given by unittest2pytest 0.2 is:
Which results in:
Another example of line wrapping causing problems is this: