Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pytest/test_std.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ def test_distb(traceback_fixture, stream_fixture):
# assert actual == expected

def test_get_instructions():
# opc = get_opcode_module(PYTHON_VERSION_TRIPLE, PYTHON_IMPLEMENTATION)
actual = list(dis.get_instructions(TEST_SOURCE_CODE))
actual_len = len(actual)
assert actual_len > 0
Expand Down
1 change: 1 addition & 0 deletions pytest/testdata/01_fstring-3.6.right
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
# 3: date
# 4: anniversary
# 5: print

3: 0 LOAD_CONST (0)
2 LOAD_CONST (None)
4 IMPORT_NAME (datetime)
Expand Down
1 change: 1 addition & 0 deletions pytest/testdata/01_fstring-xasm-3.6.right
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
# 3: date
# 4: anniversary
# 5: print

3:
LOAD_CONST 0 (0)
LOAD_CONST 1 (None)
Expand Down
1 change: 1 addition & 0 deletions pytest/testdata/03_annotations-3.7.right
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
# Names:
# 0: __future__
# 1: annotations

1: 0 LOAD_CONST (0)
2 LOAD_CONST (('annotations',))
4 IMPORT_NAME (__future__)
Expand Down
1 change: 1 addition & 0 deletions pytest/testdata/03_annotations-xasm-3.7.right
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
# Names:
# 0: __future__
# 1: annotations

1:
LOAD_CONST 0 (0)
LOAD_CONST 1 (('annotations',))
Expand Down
1 change: 1 addition & 0 deletions pytest/testdata/03_big_dict-2.7.right
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,7 @@
# 341: ('%c: %c', 1, 2)
# Names:
# 0: TABLE_DIRECT

1: 0 BUILD_MAP 113

2: 3 LOAD_CONST (('+',))
Expand Down
1 change: 1 addition & 0 deletions pytest/testdata/03_big_dict-3.3.right
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,7 @@
# 369: ('%c: %c', 1, 2)
# Names:
# 0: TABLE_DIRECT

1: 0 BUILD_MAP 113

2: 3 LOAD_CONST (('+',))
Expand Down
1 change: 1 addition & 0 deletions pytest/testdata/03_big_dict-3.5.right
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,7 @@
# 369: ('%c: %c', 1, 2)
# Names:
# 0: TABLE_DIRECT

2: 0 LOAD_CONST ("BINARY_ADD")
3 LOAD_CONST (('+',))

Expand Down
1 change: 1 addition & 0 deletions pytest/testdata/03_big_dict-3.6.right
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@
# 257: ('%c: %c', 1, 2)
# Names:
# 0: TABLE_DIRECT

2: 0 LOAD_CONST (('+',))

3: 2 LOAD_CONST (('-',))
Expand Down
1 change: 1 addition & 0 deletions pytest/testdata/03_big_dict-xasm-2.7.right
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,7 @@
# 341: ('%c: %c', 1, 2)
# Names:
# 0: TABLE_DIRECT

1:
BUILD_MAP 113

Expand Down
1 change: 1 addition & 0 deletions pytest/testdata/03_big_dict-xasm-3.3.right
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,7 @@
# 369: ('%c: %c', 1, 2)
# Names:
# 0: TABLE_DIRECT

1:
BUILD_MAP 113

Expand Down
1 change: 1 addition & 0 deletions pytest/testdata/03_big_dict-xasm-3.5.right
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,7 @@
# 369: ('%c: %c', 1, 2)
# Names:
# 0: TABLE_DIRECT

2:
LOAD_CONST 0 ("BINARY_ADD")
LOAD_CONST 213 (('+',))
Expand Down
1 change: 1 addition & 0 deletions pytest/testdata/03_big_dict-xasm-3.6.right
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@
# 257: ('%c: %c', 1, 2)
# Names:
# 0: TABLE_DIRECT

2:
LOAD_CONST 101 (('+',))

Expand Down
3 changes: 3 additions & 0 deletions pytest/testdata/04_pypy_lambda-2.7PyPy.right
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
# 1: None
# Names:
# 0: f

4: 0 LOAD_CONST (<code object at 0xdeadbeef0001, line 4)
3 MAKE_FUNCTION (0 default parameters)
6 STORE_NAME (f)
Expand All @@ -33,6 +34,7 @@
# right
# Positional arguments:
# right

4: 0 BUILD_LIST 0
3 LOOKUP_METHOD (map)
6 LOAD_CONST (<code object at 0xdeadbeef0001, line 4)
Expand All @@ -55,6 +57,7 @@
# length
# Positional arguments:
# length

4: 0 LOAD_CONST (())
3 RETURN_VALUE

3 changes: 3 additions & 0 deletions pytest/testdata/04_pypy_lambda-xasm-2.7PyPy.right
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
# length
# Positional arguments:
# length

4:
LOAD_CONST 1 (())
RETURN_VALUE
Expand All @@ -34,6 +35,7 @@
# right
# Positional arguments:
# right

4:
BUILD_LIST 0
LOOKUP_METHOD 0 (map)
Expand All @@ -55,6 +57,7 @@
# 1: None
# Names:
# 0: f

4:
LOAD_CONST 0 (<code object at 0xdeadbeef0001, line 4)
MAKE_FUNCTION 0 (0 default parameters)
Expand Down
Loading