New issue 642: misleading error report
https://bitbucket.org/hpk42/pytest/issue/642/misleading-error-report
Thomas Tanner:
py.test doesn't show the code section which is actually failing
```
#!python
platform darwin -- Python 2.7.8 -- py-1.4.26 -- pytest-2.6.4
plugins: pythonpath
collected 1 items
test_with.py F
=================================================== FAILURES
===================================================
_____________________________________________________ test
_____________________________________________________
def test():
from pytest import raises
with raises(AssertionError):
if True:
pass
else:
> pass
E Failed: DID NOT RAISE
test_with.py:7: Failed
```
_______________________________________________
pytest-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pytest-commit