MCPcopy Index your code
hub / github.com/python/cpython / test_static_swaps_match_mapping

Method test_static_swaps_match_mapping

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

Source from the content-addressed store, hash-verified

779 self.assertNotInBytecode(f, "SWAP")
780
781 def test_static_swaps_match_mapping(self):
782 for a, b, c in product("_a", "_b", "_c"):
783 pattern = f"{{'a': {a}, 'b': {b}, 'c': {c}}}"
784 with self.subTest(pattern):
785 code = compile_pattern_with_fast_locals(pattern)
786 self.assertNotInBytecode(code, "SWAP")
787
788 def test_static_swaps_match_class(self):
789 forms = [

Callers

nothing calls this directly

Calls 3

assertNotInBytecodeMethod · 0.80
subTestMethod · 0.45

Tested by

no test coverage detected