diff --git a/trytond/trytond/tests/test_filestore.py b/trytond/trytond/tests/test_filestore.py index 49851b0a90..3ef4b6a2f2 100644 --- a/trytond/trytond/tests/test_filestore.py +++ b/trytond/trytond/tests/test_filestore.py @@ -17,7 +17,10 @@ class FileStoreTestCase(unittest.TestCase): path = config.get('database', 'path') dtemp = tempfile.mkdtemp() config.set('database', 'path', dtemp) + patcher = patch('trytond.filestore.PATH', dtemp) + patcher.start() self.addCleanup(config.set, 'database', 'path', path) + self.addCleanup(patcher.stop) self.addCleanup(shutil.rmtree, dtemp) def data(self):