-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed
Labels
topic: tracebacksrelated to displaying and handling of tracebacksrelated to displaying and handling of tracebackstype: bugproblem that needs to be addressedproblem that needs to be addressed
Description
Given test changed as
import pytest
def test_foo():
- pytest.fail('my message')
+ pytest.fail('my message', pytrace=False) and invoked as
pytest --tb=line test_foo.py
results in output
== FAILURES ==
-.../test_foo.py:4: Failed: my message
+NoneExpected: Output remains the same
== FAILURES ==
.../test_foo.py:4: Failed: my message
Metadata
Metadata
Assignees
Labels
topic: tracebacksrelated to displaying and handling of tracebacksrelated to displaying and handling of tracebackstype: bugproblem that needs to be addressedproblem that needs to be addressed