Unittest - Add prefixes to task and taskd temporary folders

This commit is contained in:
Renato Alves 2014-07-18 13:20:06 +01:00
parent 86dd05c51d
commit 72e8a73ae0
2 changed files with 2 additions and 2 deletions

View file

@ -31,7 +31,7 @@ class Task(object):
# Configuration of the isolated environment
self._original_pwd = os.getcwd()
self.datadir = tempfile.mkdtemp()
self.datadir = tempfile.mkdtemp(prefix="task_")
self.taskrc = os.path.join(self.datadir, "test.rc")
# Ensure any instance is properly destroyed at session end