summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mail/src/leap/mail/tests/common.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/mail/src/leap/mail/tests/common.py b/mail/src/leap/mail/tests/common.py
index a411b2d8..6ef5d170 100644
--- a/mail/src/leap/mail/tests/common.py
+++ b/mail/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()