QUERY · ISSUE
Print traceback without an exception
Hello, in CPython, there is a way to print a traceback outside of an exception, through traceback.print_stack() function. What would it take to add similar functionality to micropython?
CANDIDATE · PULL REQUEST
- show traceback when test failed
i was surprised that exception in tested function is just silently redirected to nowhere.
I think it's good to show the traceback.
Is this the same as what CPython does?
Let's check:
test_ee.py
micropython:
CPython 3.8:
So this change makes it closer to behaviour of CPython.
Makes sense. Adding a newline would be nice though because raising multiple exceptions results in text which gets hard to read.
should I do any more changes or it's ok?
@stinos? Anyone?
I think this is ok, but it's not up to me to merge it :)