[Pytest-commit] Issue #642: misleading error report (hpk42/pytest)
Thomas Tanner
issues-reply at bitbucket.org
Thu Dec 11 11:43:05 CET 2014
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
```
More information about the pytest-commit
mailing list