diff options
Diffstat (limited to 'tests/test_init.py')
-rw-r--r-- | tests/test_init.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/test_init.py b/tests/test_init.py index 0c68324..bece6f9 100644 --- a/tests/test_init.py +++ b/tests/test_init.py @@ -30,7 +30,6 @@ class PlainRepoInitialization(unittest.TestCase): class PortageRepoInitialization(unittest.TestCase): def setUp(self): - pomu_active_repo._drop() os.environ['EROOT'] = REPO_PATH os.environ['ROOT'] = REPO_PATH os.environ['PORTAGE_CONFIGROOT'] = REPO_PATH @@ -42,6 +41,11 @@ class PortageRepoInitialization(unittest.TestCase): self.REPO_DIR = REPO_DIR def tearDown(self): + pomu_active_repo._drop() + del os.environ['EROOT'] + del os.environ['ROOT'] + del os.environ['PORTAGE_CONFIGROOT'] + importlib.reload(portage) rmtree(REPO_PATH) def testRepoList(self): |