Skip to content

Commit eeea087

Browse files
committed
Add a label to the test.
1 parent e7fc901 commit eeea087

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Lib/test/test_compiler_codegen.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ def test_syntax_error__return_not_in_function(self):
163163
self.assertEqual(cm.exception.end_offset, 10)
164164

165165
def test_frozenset_optimization(self):
166+
l1 = self.Label()
166167
snippet = "frozenset({1, 2, 3})"
167168
expected = [
168169
('RESUME', 0),
@@ -171,14 +172,15 @@ def test_frozenset_optimization(self):
171172
('COPY', 1),
172173
('LOAD_COMMON_CONSTANT', 12),
173174
('IS_OP', 0),
174-
('POP_JUMP_IF_FALSE', 9),
175+
('POP_JUMP_IF_FALSE', l1),
175176
('POP_TOP', None),
176177
('LOAD_CONST', 1),
177178
('LOAD_CONST', 2),
178179
('LOAD_CONST', 3),
179180
('BUILD_SET', 3),
180181
('CALL_INTRINSIC_1', 12),
181182
('JUMP', 0),
183+
l1,
182184
('PUSH_NULL', None),
183185
('LOAD_CONST', 1),
184186
('LOAD_CONST', 2),

0 commit comments

Comments
 (0)