(self)
| 15 | sys.stderr = self.orig_stderr |
| 16 | |
| 17 | def test_simple(self): |
| 18 | c = CodeRunner( |
| 19 | request_refresh=lambda: self.orig_stdout.flush() |
| 20 | or self.orig_stderr.flush() |
| 21 | ) |
| 22 | stdout = FakeOutput(c, lambda *args, **kwargs: None, None) |
| 23 | stderr = FakeOutput(c, lambda *args, **kwargs: None, None) |
| 24 | sys.stdout = stdout |
| 25 | sys.stdout = stderr |
| 26 | c.load_code("1 + 1") |
| 27 | c.run_code() |
| 28 | c.run_code() |
| 29 | c.run_code() |
| 30 | |
| 31 | def test_exception(self): |
| 32 | c = CodeRunner( |
nothing calls this directly
no test coverage detected