summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'pym/portage/tests/resolver/test_eapi.py')
-rw-r--r--pym/portage/tests/resolver/test_eapi.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/pym/portage/tests/resolver/test_eapi.py b/pym/portage/tests/resolver/test_eapi.py
index f2eff44d..19c7b219 100644
--- a/pym/portage/tests/resolver/test_eapi.py
+++ b/pym/portage/tests/resolver/test_eapi.py
@@ -92,7 +92,11 @@ class SimpleResolverTestCase(TestCase):
)
playground = ResolverPlayground(ebuilds=ebuilds)
-
- for atoms, options, action, expected_result, expected_mergelist in requests:
- success, mergelist = playground.run(atoms, options, action)
- self.assertEqual((success, mergelist), (expected_result, expected_mergelist))
+ try:
+ for atoms, options, action, \
+ expected_result, expected_mergelist in requests:
+ success, mergelist = playground.run(atoms, options, action)
+ self.assertEqual((success, mergelist),
+ (expected_result, expected_mergelist))
+ finally:
+ playground.cleanup()