-
-
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
Two tracebacks with assert_wrapper / wrap_assert_has_calls #44
Comments
Although I have not tried using the plugin with python 3 yet, this looks like the "raise .. from .." exception chaining feature which was added in 3.5, to quote the PEP:
So if we want to "hide" the fact that we caught and raised the |
@asfaltboy you mean 2.5, not 3.5 😉 |
Nah, you'll not find the changes in 2; though version 2.5 was the original target for PEP 344, it was superseded by PEP 3134 since it was targeted for Python 3. You can see 3134 mentioned in Python 3 release notes. |
@blueyed this happens only with @asfaltboy tried your suggestion real quick now but it did not work: inside the |
@nicoddemus |
When using
assert_has_calls
I am seeing two tracebacks, but the first one should not be there?!This is with pytest-2.9.2.dev1 and Python 3.5.1.
It looks like the
__tracebackhide__ = True
trick is not working?!With
mock_traceback_monkeypatch=false
I only get the original traceback as expected.The text was updated successfully, but these errors were encountered: