Skip to content

Commit c183109

Browse files
committed
ok, thx b4fac15
1 parent 9836ffa commit c183109

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

Lib/test/test_profiling/test_sampling_profiler/test_modes.py

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -305,24 +305,19 @@ def jsonl(obj):
305305
jsonl({"type": "str_def", "v": 1, "run_id": run_id,
306306
"defs": [{"str_id": 1, "value": "active_func1"},
307307
{"str_id": 2, "value": "active1.py"},
308-
{"str_id": 3, "value": "idle_func"},
309-
{"str_id": 4, "value": "idle.py"},
310-
{"str_id": 5, "value": "active_func2"},
311-
{"str_id": 6, "value": "active2.py"}]}),
308+
{"str_id": 3, "value": "active_func2"},
309+
{"str_id": 4, "value": "active2.py"}]}),
312310
jsonl({"type": "frame_def", "v": 1, "run_id": run_id,
313311
"defs": [{"frame_id": 1, "path_str_id": 2, "func_str_id": 1,
314312
"line": 10, "end_line": 10},
315313
{"frame_id": 2, "path_str_id": 4, "func_str_id": 3,
316-
"line": 20, "end_line": 20},
317-
{"frame_id": 3, "path_str_id": 6, "func_str_id": 5,
318314
"line": 30, "end_line": 30}]}),
319315
jsonl({"type": "agg", "v": 1, "run_id": run_id,
320-
"kind": "frame", "scope": "final", "samples_total": 3,
316+
"kind": "frame", "scope": "final", "samples_total": 2,
321317
"entries": [{"frame_id": 1, "self": 1, "cumulative": 1},
322-
{"frame_id": 2, "self": 1, "cumulative": 1},
323-
{"frame_id": 3, "self": 1, "cumulative": 1}]}),
318+
{"frame_id": 2, "self": 1, "cumulative": 1}]}),
324319
jsonl({"type": "end", "v": 1, "run_id": run_id,
325-
"samples_total": 3}),
320+
"samples_total": 2}),
326321
]
327322

328323
for exp in expected:

0 commit comments

Comments
 (0)