-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Show segfault information if a test fails #22090
Comments
In the TPI you were testing it via unittest and you tried it via pytest in the command line. Could you try it instead via unittest in the command line and see what the output difference is? Thanks! |
I somehow linked the wrong issue, it was actually #22080 |
If you look in the "python test logs" channel does the traceback appear there? I think what is happening is the subprocesses which runs pytest errors because of the seg fault. Then there is still an output with the stack trace but instead of pytest being able to capture this (because it errored and exited) it instead just dumps it to stdout. Stdout at this point still goes to "python test logs" since I haven't switched over to using the "test result" panel for output yet. So I think this is desired behavior as of now but it will soon be printed to the test result panel. |
Yep, here's the output:
|
sweet thanks, Im going to leave this open then pending the change to output tracked here: #21861 |
Tried this again, the traceback of the current thread is in the test result panel! |
Testing #21092
If I manually run a test via
pytest .
on the command line which has a segfault, I get a traceback of the current thread. However, I don't see such output in the Test Results view.The text was updated successfully, but these errors were encountered: