Replies: 1 comment 5 replies
-
https://docs.python.org/3/library/sys.html#sys.settrace what to print is currently left as execise, maybe someone has already implemented a tracer at your desired detail level |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a flaky test which failure is not reproducible for me.
Up to now I only see a meaningless error message of the test fails.
like
moonlight != sunshine
I would like to trace
bar()
every time it is called in the test.If the assertion fails, then I want to see the trace as text.
The trace should contain all lines which get executed by
bar()
(excluding Python stdlib).Maybe something like this:
How to get
SomeMagicTracer
andtrace_to_text()
?Beta Was this translation helpful? Give feedback.
All reactions