Skip to content

Commit 2af2bbc

Browse files
committed
Remove invalid bytecode from test_peepholer
These don't push enough values on the stack.
1 parent 7ef6a0b commit 2af2bbc

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

Lib/test/test_peepholer.py

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1370,16 +1370,6 @@ def test_optimize_if_const_list(self):
13701370
]
13711371
self.cfg_optimization_test(same, same, consts=[])
13721372

1373-
# not enough consts
1374-
same = [
1375-
('LOAD_SMALL_INT', 1, 0),
1376-
('LOAD_SMALL_INT', 2, 0),
1377-
('LOAD_SMALL_INT', 3, 0),
1378-
('BUILD_LIST', 4, 0),
1379-
('RETURN_VALUE', None, 0),
1380-
]
1381-
self.cfg_optimization_test(same, same, consts=[])
1382-
13831373
# not all consts
13841374
same = [
13851375
('LOAD_SMALL_INT', 1, 0),
@@ -1420,16 +1410,6 @@ def test_optimize_if_const_set(self):
14201410
]
14211411
self.cfg_optimization_test(same, same, consts=[])
14221412

1423-
# not enough consts
1424-
same = [
1425-
('LOAD_SMALL_INT', 1, 0),
1426-
('LOAD_SMALL_INT', 2, 0),
1427-
('LOAD_SMALL_INT', 3, 0),
1428-
('BUILD_SET', 4, 0),
1429-
('RETURN_VALUE', None, 0),
1430-
]
1431-
self.cfg_optimization_test(same, same, consts=[])
1432-
14331413
# not all consts
14341414
same = [
14351415
('LOAD_SMALL_INT', 1, 0),

0 commit comments

Comments
 (0)