@@ -61,7 +61,7 @@ def test_single_thread_stack(python, blocking, method, tmpdir):
6161 assert functions == ["<module>" , "first_func" , "second_func" , "third_func" ]
6262
6363 * line_numbers , last_line = [frame .code .location .lineno for frame in frames ]
64- assert line_numbers == [20 , 6 , 10 ]
64+ assert line_numbers == [19 , 6 , 10 ]
6565 assert last_line in {16 , 17 }
6666
6767 assert not thread .native_frames
@@ -90,7 +90,7 @@ def test_single_thread_stack_non_blocking(tmpdir):
9090 assert functions == ["<module>" , "first_func" , "second_func" , "third_func" ]
9191
9292 * line_numbers , last_line = [frame .code .location .lineno for frame in frames ]
93- assert line_numbers == [20 , 6 , 10 ]
93+ assert line_numbers == [19 , 6 , 10 ]
9494 assert last_line in {16 , 17 }
9595
9696 assert not thread .native_frames
@@ -134,7 +134,7 @@ def test_multiple_thread_stack(python, blocking, method, tmpdir):
134134 assert functions == ["<module>" , "first_func" , "second_func" , "third_func" ]
135135
136136 * line_numbers , last_line = [frame .code .location .lineno for frame in frames ]
137- assert line_numbers == [42 , 23 , 27 ]
137+ assert line_numbers == [41 , 23 , 27 ]
138138 assert last_line in {38 , 39 }
139139
140140 assert not main_thread .native_frames
@@ -193,7 +193,7 @@ def test_single_thread_stack_native(python, method, blocking, tmpdir):
193193 assert functions == ["<module>" , "first_func" , "second_func" , "third_func" ]
194194
195195 * line_numbers , last_line = [frame .code .location .lineno for frame in frames ]
196- assert line_numbers == [20 , 6 , 10 ]
196+ assert line_numbers == [19 , 6 , 10 ]
197197 assert last_line in {16 , 17 }
198198
199199 assert thread .native_frames
@@ -255,7 +255,7 @@ def test_multiple_thread_stack_native(python, method, blocking, tmpdir):
255255 assert functions == ["<module>" , "first_func" , "second_func" , "third_func" ]
256256
257257 * line_numbers , last_line = [frame .code .location .lineno for frame in frames ]
258- assert line_numbers == [42 , 23 , 27 ]
258+ assert line_numbers == [41 , 23 , 27 ]
259259 assert last_line in {38 , 39 }
260260
261261 assert main_thread .native_frames
@@ -352,7 +352,7 @@ def test_thread_registered_with_python_but_with_no_python_calls(python, tmpdir):
352352 assert functions == ["<module>" , "foo" ]
353353
354354 lines = [frame .code .location .lineno for frame in frames ]
355- assert lines == [13 , 10 ]
355+ assert lines == [12 , 9 ]
356356
357357
358358def test_thread_registered_with_python_with_other_threads (tmpdir ):
@@ -394,7 +394,7 @@ def test_thread_registered_with_python_with_other_threads(tmpdir):
394394 assert functions == ["<module>" , "foo" ]
395395
396396 lines = [frame .code .location .lineno for frame in frames ]
397- assert lines == [13 , 10 ]
397+ assert lines == [12 , 9 ]
398398
399399 native_frames = list (non_python_thread .native_frames )
400400 assert len (native_frames ) >= 4
0 commit comments