(self)
| 892 | class TestInterpreterExec(TestBase): |
| 893 | |
| 894 | def test_success(self): |
| 895 | interp = interpreters.create() |
| 896 | script, results = _captured_script('print("it worked!", end="")') |
| 897 | with results: |
| 898 | interp.exec(script) |
| 899 | results = results.final() |
| 900 | results.raise_if_failed() |
| 901 | out = results.stdout |
| 902 | |
| 903 | self.assertEqual(out, 'it worked!') |
| 904 | |
| 905 | def test_failure(self): |
| 906 | interp = interpreters.create() |
nothing calls this directly
no test coverage detected