(self, *args)
| 69 | return dst |
| 70 | |
| 71 | def run(self, *args): |
| 72 | p = subprocess.Popen( |
| 73 | [self.executable] + list(args), |
| 74 | cwd=self.tmpdir, |
| 75 | stdout=subprocess.PIPE, |
| 76 | stderr=subprocess.PIPE, |
| 77 | universal_newlines=True, |
| 78 | env=self._env(), |
| 79 | ) |
| 80 | stdout, stderr = p.communicate() |
| 81 | # output to stdout/stderr because it helps debugging failed tests |
| 82 | sys.stdout.write(stdout) |
| 83 | sys.stderr.write(stderr) |
| 84 | return p.returncode, stdout, stderr |
| 85 | |
| 86 | def _env(self): |
| 87 | # Important: Use deepcopy to avoid propagating these changes to following runs! |
no test coverage detected