Skip to content

Commit cfdd2d8

Browse files
authored
Merge pull request #173 from rocky/lineoffset-refactor
Lineoffset refactor
2 parents a198fd9 + 0e47f1c commit cfdd2d8

24 files changed

+338
-160
lines changed

pytest/test_std.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ def test_distb(traceback_fixture, stream_fixture):
155155
# assert actual == expected
156156

157157
def test_get_instructions():
158+
# opc = get_opcode_module(PYTHON_VERSION_TRIPLE, PYTHON_IMPLEMENTATION)
158159
actual = list(dis.get_instructions(TEST_SOURCE_CODE))
159160
actual_len = len(actual)
160161
assert actual_len > 0

pytest/testdata/01_fstring-3.6.right

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
# 3: date
3030
# 4: anniversary
3131
# 5: print
32+
3233
3: 0 LOAD_CONST (0)
3334
2 LOAD_CONST (None)
3435
4 IMPORT_NAME (datetime)

pytest/testdata/01_fstring-xasm-3.6.right

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
# 3: date
3131
# 4: anniversary
3232
# 5: print
33+
3334
3:
3435
LOAD_CONST 0 (0)
3536
LOAD_CONST 1 (None)

pytest/testdata/03_annotations-3.7.right

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
# Names:
1515
# 0: __future__
1616
# 1: annotations
17+
1718
1: 0 LOAD_CONST (0)
1819
2 LOAD_CONST (('annotations',))
1920
4 IMPORT_NAME (__future__)

pytest/testdata/03_annotations-xasm-3.7.right

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
# Names:
1616
# 0: __future__
1717
# 1: annotations
18+
1819
1:
1920
LOAD_CONST 0 (0)
2021
LOAD_CONST 1 (('annotations',))

pytest/testdata/03_big_dict-2.7.right

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,7 @@
350350
# 341: ('%c: %c', 1, 2)
351351
# Names:
352352
# 0: TABLE_DIRECT
353+
353354
1: 0 BUILD_MAP 113
354355

355356
2: 3 LOAD_CONST (('+',))

pytest/testdata/03_big_dict-3.3.right

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,7 @@
380380
# 369: ('%c: %c', 1, 2)
381381
# Names:
382382
# 0: TABLE_DIRECT
383+
383384
1: 0 BUILD_MAP 113
384385

385386
2: 3 LOAD_CONST (('+',))

pytest/testdata/03_big_dict-3.5.right

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,7 @@
380380
# 369: ('%c: %c', 1, 2)
381381
# Names:
382382
# 0: TABLE_DIRECT
383+
383384
2: 0 LOAD_CONST ("BINARY_ADD")
384385
3 LOAD_CONST (('+',))
385386

pytest/testdata/03_big_dict-3.6.right

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@
268268
# 257: ('%c: %c', 1, 2)
269269
# Names:
270270
# 0: TABLE_DIRECT
271+
271272
2: 0 LOAD_CONST (('+',))
272273

273274
3: 2 LOAD_CONST (('-',))

pytest/testdata/03_big_dict-xasm-2.7.right

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,7 @@
351351
# 341: ('%c: %c', 1, 2)
352352
# Names:
353353
# 0: TABLE_DIRECT
354+
354355
1:
355356
BUILD_MAP 113
356357

0 commit comments

Comments
 (0)