Skip to content

Commit 2e8acdf

Browse files
authored
Apply suggestion from @pablogsal
1 parent ce2aa0e commit 2e8acdf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_profiling/test_sampling_profiler/test_integration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -945,7 +945,7 @@ def test_all_stacks_share_same_base_frame(self):
945945
total_samples += count
946946
if call_tree:
947947
has_entry_point = any(
948-
frame[2] == "run_forever" for frame in call_tree
948+
frame[2] in {“run_forever", '<module>'} for frame in call_tree
949949
)
950950
if has_entry_point:
951951
samples_with_entry_point += count

0 commit comments

Comments
 (0)