(self)
| 144 | self.check_lnotab(f) |
| 145 | |
| 146 | def test_pack_unpack(self): |
| 147 | for line, elem in ( |
| 148 | ('a, = a,', 'LOAD_CONST',), |
| 149 | ('a, b = a, b', 'SWAP',), |
| 150 | ('a, b, c = a, b, c', 'SWAP',), |
| 151 | ): |
| 152 | with self.subTest(line=line): |
| 153 | code = compile(line,'','single') |
| 154 | self.assertInBytecode(code, elem) |
| 155 | self.assertNotInBytecode(code, 'BUILD_TUPLE') |
| 156 | self.assertNotInBytecode(code, 'UNPACK_SEQUENCE') |
| 157 | self.check_lnotab(code) |
| 158 | |
| 159 | def test_constant_folding_tuples_of_constants(self): |
| 160 | for line, elem in ( |
nothing calls this directly
no test coverage detected