def run(self, *args, **kwargs): with TemporaryDirectory() as tmpdir: self.testdir = Path(tmpdir) self.makefile_path = self.testdir / 'Makefile' self.source_path = self.testdir / 'hello.source' self.target_path = self.testdir / 'hello' with self.makefile_path.open('w') as f: f.write(self.Makefile) with self.source_path.open('w') as f: f.write(self.hello_source) self.m = Makefile.parse('-C', str(self.testdir)) super().run(*args, **kwargs)
def run(self, *args, **kwargs): with TemporaryDirectory() as tmpdir: self.testdir = Path(tmpdir) self.m = Makefile.parse('-C', str(self.testdir)) super().run(*args, **kwargs)