-
-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stub.assert_called_once_with has distracting reporting #26
Comments
Thanks for the report! I'm not sure how to tackle this without some ugly ugly hack, but I will see if I figure something out. Thanks again! |
How about this: Monkeypatch the five This solution does not seem too ugly. And a lot less ugly than messing with tracebacks. That leaves the question when to monkeypatch the functions – on pytest setup or only for the What do you think? |
Sounds good, I had a similar idea but didn't think of monkeypatching the entire |
Btw, a PR would be very welcome! 😄 |
assert_called_once_with
and the otherassert_
functions show in the traceback, which is very unhelpful.__tracebackhide__
would help, but this is is a system lib :).Test
Output:
Expected Output:
The text was updated successfully, but these errors were encountered: