tests/misc/sys_settrace_features.py: Ignore CPython zipimport traces.

Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
Damien George 2020-12-14 10:29:57 +11:00
parent f305c62a5f
commit e0bb7a53c3
1 changed files with 2 additions and 1 deletions

View File

@ -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)