i want to change the behavior of pytest failure. i don't want to see a code or any trace back in the failure summery. i just want it to show the assertion statement and that is all. how i can do that
for instance if i have
assert x==y , pytest.fail("fail message")
i want the test to fail with the "fail message" and with no traceback i usually workaround unexpected exception with logging the errors and exit , but i am not sure how to handle the pytest assertion