(self)
| 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 = [ |
nothing calls this directly
no test coverage detected