You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally reported by: Ronan Lamy (BitBucket: rlamy, GitHub: rlamy)
Consider this test file:
#!python
def test_and():
assert 1+1 == 2 and 2+2==4 and 4+4 == 8
With 2.1.0, assert rewriting fails with an AttributeError. I see that the typo causing it (ast.Boolop instead of ast.BoolOp) has already been fixed. However, when I fix it locally, I get another error:
#!
================================================= test session starts =================================================
platform linux2 -- Python 2.7.1 -- pytest-2.1.0
collected 0 items / 1 errors
======================================================= ERRORS ========================================================
___________________________________________ ERROR collecting test_pytest.py ___________________________________________
../std_env/lib/python2.7/site-packages/py/_path/local.py:529: in pyimport
> mod = __import__(modname, None, None, ['__doc__'])
../std_env/lib/python2.7/site-packages/_pytest/assertion/rewrite.py:99: in find_module
> co = _make_rewritten_pyc(state, fn_pypath, pyc)
../std_env/lib/python2.7/site-packages/_pytest/assertion/rewrite.py:156: in _make_rewritten_pyc
> co = compile(tree, fn.strpath, "exec")
E TypeError: BoolOp field "values" must be a list, not a tuple
=============================================== 1 error in 0.10 seconds ===============================================
Originally reported by: Ronan Lamy (BitBucket: rlamy, GitHub: rlamy)
Consider this test file:
With 2.1.0, assert rewriting fails with an AttributeError. I see that the typo causing it (ast.Boolop instead of ast.BoolOp) has already been fixed. However, when I fix it locally, I get another error:
The text was updated successfully, but these errors were encountered: