-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
pytest rethrows Exception poorly. losing traceback information. #1516
Comments
Could you show an example where the original traceback isn't shown? I just tried with
|
@The-Compiler This is what I see, I'm working on getting a simple reproduction.
|
Yep, that seems to be the case with Python 2... |
Merged in #1702 |
This was referenced Aug 24, 2016
This was referenced Aug 31, 2016
This was referenced Nov 15, 2017
Merged
This was referenced Nov 27, 2017
This was referenced Dec 6, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In config.py pytest catches all Exceptions and rethrows them (poorly) as conftestImportFailure, losing the original traceback. this makes bug hunting rather tricky since the traceback pytest gives doesn't point at all to the cause of the error.
either throwing the original exception or rethrowing properly would be a good solution.
The text was updated successfully, but these errors were encountered: