summaryrefslogtreecommitdiff
path: root/mail/src/leap
diff options
context:
space:
mode:
authorRuben Pollan <meskio@sindominio.net>2015-07-02 18:39:25 -0400
committerRuben Pollan <meskio@sindominio.net>2015-07-02 18:39:25 -0400
commitb00bdbf262f1485c83e6757764f7b8dcc27a64be (patch)
treeb12c063268aa71b6fdba33686392e47815a1a600 /mail/src/leap
parentcbabd680b2edb7a276f20420235007ac16ba81b5 (diff)
[bug] tear down of leap.common.events properly in tests
The tests where writting their own implementation of env tear down instead of using leap.common's one. Using it fixes many tests.
Diffstat (limited to 'mail/src/leap')
-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 a411b2d..6ef5d17 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()