(self, interp, script)
| 492 | self.fail(self._formatMessage(msg, standardMsg)) |
| 493 | |
| 494 | def _run_string(self, interp, script): |
| 495 | wrapped, results = _captured_script(script, exc=False) |
| 496 | #_dump_script(wrapped) |
| 497 | with results: |
| 498 | if isinstance(interp, interpreters.Interpreter): |
| 499 | interp.exec(script) |
| 500 | else: |
| 501 | err = _interpreters.run_string(interp, wrapped) |
| 502 | if err is not None: |
| 503 | return None, err |
| 504 | return results.stdout(), None |
| 505 | |
| 506 | def run_and_capture(self, interp, script): |
| 507 | text, err = self._run_string(interp, script) |
no test coverage detected