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

Method test_in_literal_list

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

Source from the content-addressed store, hash-verified

626 self.check_lnotab(f)
627
628 def test_in_literal_list(self):
629 def containtest():
630 return x in [a, b]
631 self.assertEqual(count_instr_recursively(containtest, 'BUILD_LIST'), 0)
632 self.check_lnotab(containtest)
633
634 def test_iterate_literal_list(self):
635 def forloop():

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