Skip to content

Commit c4ec456

Browse files
Julien DanjouKyle-Verhoog
andauthored
test(profiling): fix missing possible notify call (#2974)
Co-authored-by: Kyle Verhoog <[email protected]>
1 parent 7557260 commit c4ec456

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

tests/profiling/collector/test_stack.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,15 @@ def _nothing():
627627
main_thread_found = True
628628
elif event.task_id in {t.ident for t in threads}:
629629
# Make sure we capture the sleep call and not a gevent hub frame
630-
assert event.frames[0][2] in ("_nothing", "sleep", "get_ident", "__bootstrap_inner", "switch", "run")
630+
assert event.frames[0][2] in (
631+
"_nothing",
632+
"sleep",
633+
"get_ident",
634+
"__bootstrap_inner",
635+
"switch",
636+
"run",
637+
"notify",
638+
)
631639

632640
# Make sure we did at least one check
633641
assert main_thread_found

0 commit comments

Comments
 (0)