(self)
| 639 | ip.ast_transformers.remove(self.negator) |
| 640 | |
| 641 | def test_run_cell(self): |
| 642 | with tt.AssertPrints('-34'): |
| 643 | ip.run_cell('print (12 + 22)') |
| 644 | |
| 645 | # A named reference to a number shouldn't be transformed. |
| 646 | ip.user_ns['n'] = 55 |
| 647 | with tt.AssertNotPrints('-55'): |
| 648 | ip.run_cell('print (n)') |
| 649 | |
| 650 | def test_timeit(self): |
| 651 | called = set() |