MCPcopy Create free account
hub / github.com/python/cpython / test_iterate_literal_list

Method test_iterate_literal_list

Lib/test/test_peepholer.py:634–639  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

632 self.check_lnotab(containtest)
633
634 def test_iterate_literal_list(self):
635 def forloop():
636 for x in [a, b]:
637 pass
638 self.assertEqual(count_instr_recursively(forloop, 'BUILD_LIST'), 0)
639 self.check_lnotab(forloop)
640
641 def test_condition_with_binop_with_bools(self):
642 def f():

Callers

nothing calls this directly

Calls 3

check_lnotabMethod · 0.95
count_instr_recursivelyFunction · 0.85
assertEqualMethod · 0.45

Tested by

no test coverage detected