We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7fc901 commit eeea087Copy full SHA for eeea087
1 file changed
Lib/test/test_compiler_codegen.py
@@ -163,6 +163,7 @@ def test_syntax_error__return_not_in_function(self):
163
self.assertEqual(cm.exception.end_offset, 10)
164
165
def test_frozenset_optimization(self):
166
+ l1 = self.Label()
167
snippet = "frozenset({1, 2, 3})"
168
expected = [
169
('RESUME', 0),
@@ -171,14 +172,15 @@ def test_frozenset_optimization(self):
171
172
('COPY', 1),
173
('LOAD_COMMON_CONSTANT', 12),
174
('IS_OP', 0),
- ('POP_JUMP_IF_FALSE', 9),
175
+ ('POP_JUMP_IF_FALSE', l1),
176
('POP_TOP', None),
177
('LOAD_CONST', 1),
178
('LOAD_CONST', 2),
179
('LOAD_CONST', 3),
180
('BUILD_SET', 3),
181
('CALL_INTRINSIC_1', 12),
182
('JUMP', 0),
183
+ l1,
184
('PUSH_NULL', None),
185
186
0 commit comments