Handle --fulltrace with pytest.raises

This changes `_repr_failure_py` to use `tbfilter=False` always.
This commit is contained in:
Daniel Hahler
2019-09-01 19:17:02 +02:00
parent 23102a7d84
commit f832ac3316
3 changed files with 9 additions and 3 deletions

View File

@@ -399,6 +399,13 @@ def test_match_raises_error(testdir):
result = testdir.runpytest()
assert result.ret != 0
result.stdout.fnmatch_lines(["*AssertionError*Pattern*[123]*not found*"])
assert "__tracebackhide__ = True" not in result.stdout.str()
result = testdir.runpytest("--fulltrace")
assert result.ret != 0
result.stdout.fnmatch_lines(
["*__tracebackhide__ = True*", "*AssertionError*Pattern*[123]*not found*"]
)
class TestFormattedExcinfo: