(self)
| 146 | |
| 147 | @unittest.expectedFailure # TODO: RUSTPYTHON |
| 148 | def test_pack_unpack(self): |
| 149 | for line, elem in ( |
| 150 | ('a, = a,', 'LOAD_CONST',), |
| 151 | ('a, b = a, b', 'SWAP',), |
| 152 | ('a, b, c = a, b, c', 'SWAP',), |
| 153 | ): |
| 154 | with self.subTest(line=line): |
| 155 | code = compile(line,'','single') |
| 156 | self.assertInBytecode(code, elem) |
| 157 | self.assertNotInBytecode(code, 'BUILD_TUPLE') |
| 158 | self.assertNotInBytecode(code, 'UNPACK_SEQUENCE') |
| 159 | self.check_lnotab(code) |
| 160 | |
| 161 | @unittest.expectedFailure # TODO: RUSTPYTHON; AssertionError: 1 != 2 |
| 162 | def test_constant_folding_tuples_of_constants(self): |
nothing calls this directly
no test coverage detected