Skip to content

Commit 85f9a64

Browse files
committed
Don't test with malformed bytecode
1 parent aeafa98 commit 85f9a64

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

Lib/test/test_peepholer.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1330,15 +1330,6 @@ def test_fold_tuple_of_constants(self):
13301330
]
13311331
self.cfg_optimization_test(before, after, consts=[], expected_consts=[(1, 2, 3)])
13321332

1333-
# not enough consts
1334-
same = [
1335-
('LOAD_SMALL_INT', 1, 0),
1336-
('LOAD_SMALL_INT', 2, 0),
1337-
('BUILD_TUPLE', 3, 0),
1338-
('RETURN_VALUE', None, 0)
1339-
]
1340-
self.cfg_optimization_test(same, same, consts=[])
1341-
13421333
# not all consts
13431334
same = [
13441335
('LOAD_SMALL_INT', 1, 0),

0 commit comments

Comments
 (0)