tests/misc/sys_settrace_features.py: Ignore CPython zipimport traces.
Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
parent
f305c62a5f
commit
e0bb7a53c3
|
@ -60,7 +60,8 @@ def trace_tick_handler_bob(frame, event, arg):
|
|||
|
||||
def trace_tick_handler(frame, event, arg):
|
||||
# Ignore CPython specific helpers.
|
||||
if frame.f_globals["__name__"].find("importlib") != -1:
|
||||
frame_name = frame.f_globals["__name__"]
|
||||
if frame_name.find("importlib") != -1 or frame_name.find("zipimport") != -1:
|
||||
return
|
||||
|
||||
print("### trace_handler::main event:", event)
|
||||
|
|
Loading…
Reference in New Issue