Skip to content

Commit 0e9e013

Browse files
Julien Danjoumergify[bot]
andauthored
test(profiling): fix rare but possible case of function name (#2948)
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
1 parent 112df14 commit 0e9e013

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/profiling/collector/test_stack.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ 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")
630+
assert event.frames[0][2] in ("_nothing", "sleep", "get_ident", "__bootstrap_inner")
631631

632632
# Make sure we did at least one check
633633
assert main_thread_found

0 commit comments

Comments
 (0)