Skip to content

Commit 719a2e5

Browse files
committed
fix test
1 parent ee8e857 commit 719a2e5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Lib/test/test_compiler_codegen.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ def test_if_expression(self):
2626
false_lbl = self.Label()
2727
expected = [
2828
('RESUME', 0, 0),
29+
('ANNOTATIONS_PLACEHOLDER', None),
2930
('LOAD_CONST', 0, 1),
3031
('TO_BOOL', 0, 1),
3132
('POP_JUMP_IF_FALSE', false_lbl := self.Label(), 1),
@@ -45,6 +46,7 @@ def test_for_loop(self):
4546
false_lbl = self.Label()
4647
expected = [
4748
('RESUME', 0, 0),
49+
('ANNOTATIONS_PLACEHOLDER', None),
4850
('LOAD_NAME', 0, 1),
4951
('GET_ITER', None, 1),
5052
loop_lbl := self.Label(),
@@ -73,6 +75,7 @@ def f(x):
7375
expected = [
7476
# Function definition
7577
('RESUME', 0),
78+
('ANNOTATIONS_PLACEHOLDER', None),
7679
('LOAD_CONST', 0),
7780
('MAKE_FUNCTION', None),
7881
('STORE_NAME', 0),
@@ -106,6 +109,7 @@ def g():
106109
expected = [
107110
# Function definition
108111
('RESUME', 0),
112+
('ANNOTATIONS_PLACEHOLDER', None),
109113
('LOAD_CONST', 0),
110114
('MAKE_FUNCTION', None),
111115
('STORE_NAME', 0),

0 commit comments

Comments
 (0)