(self, *argv)
| 457 | |
| 458 | @support.requires_subprocess() |
| 459 | def run_python(self, *argv): |
| 460 | proc = subprocess.run( |
| 461 | [sys.executable, *argv], |
| 462 | capture_output=True, |
| 463 | text=True, |
| 464 | ) |
| 465 | return proc.returncode, proc.stdout, proc.stderr |
| 466 | |
| 467 | def assert_python_ok(self, *argv): |
| 468 | exitcode, stdout, stderr = self.run_python(*argv) |
no test coverage detected