aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_init.py')
-rw-r--r--tests/test_init.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_init.py b/tests/test_init.py
index 5f0bd2d..0c68324 100644
--- a/tests/test_init.py
+++ b/tests/test_init.py
@@ -30,6 +30,7 @@ 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
@@ -49,4 +50,5 @@ class PortageRepoInitialization(unittest.TestCase):
def testPortageCreate(self):
self.assertTrue(init_portage_repo(True, REPO_DIR, REPO_PATH).is_ok())
importlib.reload(portage)
- self.assertEqual(pomu_active_repo(), REPO_DIR)
+ repo = pomu_active_repo()
+ self.assertEqual(repo.name, REPO_DIR)