diff --git a/Lib/test/test_profiling/test_sampling_profiler/test_collectors.py b/Lib/test/test_profiling/test_sampling_profiler/test_collectors.py index d440c44385e671..7746811014a9e2 100644 --- a/Lib/test/test_profiling/test_sampling_profiler/test_collectors.py +++ b/Lib/test/test_profiling/test_sampling_profiler/test_collectors.py @@ -711,7 +711,7 @@ def test_gecko_collector_async_aware(self): [MockAwaitedInfo(thread_id=100, awaited_by=[parent, child])], timestamps_us=[1000, 2000], ) - profile_data = export_gecko_profile(self, collector) + profile_data = collector._build_profile() self.assertEqual(len(profile_data["threads"]), 1) thread_data = profile_data["threads"][0]