From e0bb7a53c3244ffa720fcdb64be5784379c5f596 Mon Sep 17 00:00:00 2001 From: Damien George Date: Mon, 14 Dec 2020 10:29:57 +1100 Subject: [PATCH] tests/misc/sys_settrace_features.py: Ignore CPython zipimport traces. Signed-off-by: Damien George --- tests/misc/sys_settrace_features.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/misc/sys_settrace_features.py b/tests/misc/sys_settrace_features.py index a123044892..d315ea6973 100644 --- a/tests/misc/sys_settrace_features.py +++ b/tests/misc/sys_settrace_features.py @@ -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)