close file handles opened with tempfile.mkstemp
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
parent
1e354387f9
commit
d4e715f052
6 changed files with 17 additions and 18 deletions
|
|
@ -37,6 +37,7 @@ class EmulatorTestCase(test.CdistTestCase):
|
|||
os.environ = os.environ.copy()
|
||||
self.temp_dir = self.mkdtemp()
|
||||
handle, self.script = self.mkstemp(dir=self.temp_dir)
|
||||
os.close(handle)
|
||||
self.target_host = 'localhost'
|
||||
out_path = self.temp_dir
|
||||
self.local = local.Local(self.target_host, local_base_path, out_path)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue