From 56262b4b4c82aeb9a0b0669eba4a993c88909e9c Mon Sep 17 00:00:00 2001 From: drebs Date: Wed, 1 May 2013 10:30:41 -0300 Subject: Change how tmp directoy is removed on Couch backend tests. --- src/leap/soledad/tests/test_couch.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/leap/soledad/tests/test_couch.py') diff --git a/src/leap/soledad/tests/test_couch.py b/src/leap/soledad/tests/test_couch.py index b0352782..9ac07f88 100644 --- a/src/leap/soledad/tests/test_couch.py +++ b/src/leap/soledad/tests/test_couch.py @@ -22,6 +22,7 @@ Test ObjectStore and Couch backend bits. import re import copy +import shutil from base64 import b64decode from leap.soledad.backends import couch from leap.soledad.tests import u1db_tests as tests @@ -116,7 +117,7 @@ stderr: """ self.process.terminate() self.process.communicate() - os.system("rm -rf %s" % self.tempdir) + shutil.rmtree(self.tempdir) class CouchDBTestCase(unittest.TestCase): -- cgit v1.2.3