Skip to content

Commit 66bc46c

Browse files
peytondmurraysarahmonod
authored andcommitted
Adjust line numbers for newly reformatted files
Signed-off-by: pdmurray <peynmurray@gmail.com>
1 parent 6e44cb0 commit 66bc46c

3 files changed

Lines changed: 12 additions & 12 deletions

File tree

tests/integration/test_core_analyzer.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def test_single_thread_stack(
8282
assert functions == ["<module>", "first_func", "second_func", "third_func"]
8383

8484
*line_numbers, last_line = [frame.code.location.lineno for frame in frames]
85-
assert line_numbers == [20, 6, 10]
85+
assert line_numbers == [19, 6, 10]
8686
assert last_line in {16, 17}
8787

8888
assert thread.native_frames
@@ -131,7 +131,7 @@ def test_single_thread_stack_from_elf_data(python: PythonVersion, tmpdir: Path)
131131
assert functions == ["<module>", "first_func", "second_func", "third_func"]
132132

133133
*line_numbers, last_line = [frame.code.location.lineno for frame in frames]
134-
assert line_numbers == [20, 6, 10]
134+
assert line_numbers == [19, 6, 10]
135135
assert last_line in {16, 17}
136136

137137
assert thread.native_frames
@@ -211,7 +211,7 @@ def test_multiple_thread_stack_native(
211211
assert functions == ["<module>", "first_func", "second_func", "third_func"]
212212

213213
*line_numbers, last_line = [frame.code.location.lineno for frame in frames]
214-
assert line_numbers == [42, 23, 27]
214+
assert line_numbers == [41, 23, 27]
215215
assert last_line in {38, 39}
216216

217217
assert main_thread.native_frames
@@ -298,7 +298,7 @@ def test_thread_registered_with_python_with_other_threads(tmpdir):
298298
assert functions == ["<module>", "foo"]
299299

300300
lines = [frame.code.location.lineno for frame in frames]
301-
assert lines == [13, 10]
301+
assert lines == [12, 9]
302302

303303
native_frames = list(non_python_thread.native_frames)
304304
assert len(native_frames) >= 1

tests/integration/test_gather_stacks.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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

358358
def 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

tests/integration/test_relocatable_cores.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def test_single_thread_stack_for_relocated_core(
108108
assert functions == ["<module>", "first_func", "second_func", "third_func"]
109109

110110
*line_numbers, last_line = [frame.code.location.lineno for frame in frames]
111-
assert line_numbers == [20, 6, 10]
111+
assert line_numbers == [19, 6, 10]
112112
assert last_line in {16, 17}
113113

114114
assert thread.native_frames

0 commit comments

Comments
 (0)