Hiding Test Traceback

pytest
Author

Imad Dabbura

Published

March 27, 2023

Sometime we might want to invoke a test from another test function/method that tests some functionality but we don’t want to include the traceback of the invoked function if the test failed. We can achive this by including __tracebackhide__ = True at the top of the invoked function’s body.