diff options
author | Ruben Pollan <meskio@sindominio.net> | 2015-07-02 18:39:25 -0400 |
---|---|---|
committer | Ruben Pollan <meskio@sindominio.net> | 2015-07-02 18:39:25 -0400 |
commit | b00bdbf262f1485c83e6757764f7b8dcc27a64be (patch) | |
tree | b12c063268aa71b6fdba33686392e47815a1a600 /mail/src/leap | |
parent | cbabd680b2edb7a276f20420235007ac16ba81b5 (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.py | 8 |
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() |