test_ok1/_pytest/_code
Jordan Moldow 2e61f702c0 Support PEP-415's Exception.__suppress_context__
PEP-415 states that `exception.__context__` should be suppressed
in traceback outputs, if `exception.__suppress_context__` is
`True`.

Now if a ``raise exception from None`` is caught by pytest,
pytest will no longer chain the context in the test report.

The algorithm in `FormattedExcinfo` now better matches the one
in `traceback.TracebackException`.

`Exception.__suppress_context__` is available in all of the
versions of Python 3 that are supported by pytest.

Fixes #2631.
2017-07-29 02:39:17 -07:00
..
__init__.py Add __future__ imports to all pytest modules 2017-03-16 22:45:40 -03:00
_py2traceback.py Fixed E302 flake8 errors 2017-07-17 01:44:23 +02:00
code.py Support PEP-415's Exception.__suppress_context__ 2017-07-29 02:39:17 -07:00
source.py Fixed E731 flake8 errors 2017-07-17 01:44:23 +02:00