summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/leap/mail/tests/common.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/leap/mail/tests/common.py b/src/leap/mail/tests/common.py
index a411b2d..6ef5d17 100644
--- a/src/leap/mail/tests/common.py
+++ b/src/leap/mail/tests/common.py
@@ -92,12 +92,8 @@ class SoledadTestMixin(unittest.TestCase, BaseLeapTest):
self.results = []
try:
self._soledad.close()
- except Exception as exc:
+ except Exception:
print "ERROR WHILE CLOSING SOLEDAD"
# logging.exception(exc)
finally:
- os.environ["PATH"] = self.old_path
- os.environ["HOME"] = self.old_home
- # safety check
- assert 'leap_tests-' in self.tempdir
- shutil.rmtree(self.tempdir)
+ self.tearDownEnv()