diff --git a/trytond/trytond/tests/test_filestore.py b/trytond/trytond/tests/test_filestore.py index 4d551bb6de..63d699d5e3 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):