(self, *path, text)
| 73 | return tmp |
| 74 | |
| 75 | def write_script(self, *path, text): |
| 76 | filename = os.path.join(*path) |
| 77 | dirname = os.path.dirname(filename) |
| 78 | if dirname: |
| 79 | os.makedirs(dirname, exist_ok=True) |
| 80 | with open(filename, 'w', encoding='utf-8') as outfile: |
| 81 | outfile.write(dedent(text)) |
| 82 | return filename |
| 83 | |
| 84 | @support.requires_subprocess() |
| 85 | def run_python(self, argv, *, cwd=None): |