(self)
| 83 | # to be replaced anyway. |
| 84 | |
| 85 | def test_unot(self): |
| 86 | # UNARY_NOT POP_JUMP_IF_FALSE --> POP_JUMP_IF_TRUE' |
| 87 | def unot(x): |
| 88 | if not x == 2: |
| 89 | del x |
| 90 | self.assertNotInBytecode(unot, 'UNARY_NOT') |
| 91 | self.assertNotInBytecode(unot, 'POP_JUMP_IF_FALSE') |
| 92 | self.assertInBytecode(unot, 'POP_JUMP_IF_TRUE') |
| 93 | self.check_lnotab(unot) |
| 94 | |
| 95 | def test_elim_inversion_of_is_or_in(self): |
| 96 | for line, cmp_op, invert in ( |
nothing calls this directly
no test coverage detected