test_ok2/testing/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
..
test_code.py Fixed E701 flake8 errors 2017-07-17 01:44:23 +02:00
test_excinfo.py Support PEP-415's Exception.__suppress_context__ 2017-07-29 02:39:17 -07:00
test_source.py Add "fix-lint" tox environment to fix linting errors 2017-07-20 22:12:15 -03:00
test_source_multiline_block.py Add "fix-lint" tox environment to fix linting errors 2017-07-20 22:12:15 -03:00