diff --git a/tests/profiling/collector/test_threading.py b/tests/profiling/collector/test_threading.py index 2cd538a5a49..5b2e7b92d6d 100644 --- a/tests/profiling/collector/test_threading.py +++ b/tests/profiling/collector/test_threading.py @@ -254,7 +254,12 @@ def play_with_lock(): # It's called through pytest so I'm sure it's gonna be that long, right? assert len(event.frames) > 3 assert event.nframes > 3 - assert event.frames[0] == ("tests/profiling/collector/test_threading.py", 238, "play_with_lock", "") + assert event.frames[0] == ( + "tests/profiling/collector/test_threading.py", + 238, + "play_with_lock", + "", + ), event.frames assert event.sampling_pct == 100 break else: @@ -268,7 +273,12 @@ def play_with_lock(): # It's called through pytest so I'm sure it's gonna be that long, right? assert len(event.frames) > 3 assert event.nframes > 3 - assert event.frames[0] == ("tests/profiling/collector/test_threading.py", 238, "play_with_lock", "") + assert event.frames[0] == ( + "tests/profiling/collector/test_threading.py", + 239, + "play_with_lock", + "", + ), event.frames assert event.sampling_pct == 100 break else: