(self)
| 123 | @pytest.mark.skipif(not has_ipython, reason="IPython not available") |
| 124 | class TestRunningCode(TestBase): |
| 125 | def test_print(self): |
| 126 | self.redirect_stdout() |
| 127 | try: |
| 128 | self.add_exec('print("output")') |
| 129 | eq_(sys.stdout.getvalue(), "output\n") |
| 130 | finally: |
| 131 | self.restore_stdout() |
| 132 | |
| 133 | def testQuestionMark_1(self): |
| 134 | self.redirect_stdout() |
nothing calls this directly
no test coverage detected