From 3e74de6208c22643b1c063b70d22d352c0409703 Mon Sep 17 00:00:00 2001 From: drebs Date: Thu, 17 Nov 2016 22:11:54 -0200 Subject: [test] remove unneeded setting of environment variables --- testing/test_soledad/util.py | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'testing/test_soledad') diff --git a/testing/test_soledad/util.py b/testing/test_soledad/util.py index f44ce166..4a705396 100644 --- a/testing/test_soledad/util.py +++ b/testing/test_soledad/util.py @@ -223,14 +223,7 @@ class BaseSoledadTest(BaseLeapTest, MockedSharedDBTest): # repeat it here because twisted.trial does not work with # setUpClass/tearDownClass. - self.old_path = os.environ['PATH'] - self.old_home = os.environ['HOME'] self.home = self.tempdir - bin_tdir = os.path.join( - self.tempdir, - 'bin') - os.environ["PATH"] = bin_tdir - os.environ["HOME"] = self.tempdir # config info self.db1_file = os.path.join(self.tempdir, "db1.u1db") @@ -257,10 +250,6 @@ class BaseSoledadTest(BaseLeapTest, MockedSharedDBTest): self._db2.close() self._soledad.close() - # restore paths - os.environ["PATH"] = self.old_path - os.environ["HOME"] = self.old_home - def _delete_temporary_dirs(): # XXX should not access "private" attrs for f in [self._soledad.local_db_path, -- cgit v1.2.3