summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-08-05 13:33:38 -0700
committerZac Medico <zmedico@gentoo.org>2010-08-05 13:37:33 -0700
commita082e60d36af81d908e1fa185032c5da1e270375 (patch)
tree7620c6858c15410acfac225d1cca126136c7ad45 /pym/portage/tests/resolver/ResolverPlayground.py
parentTests: Add resolver/test_eapi (2 tests disabled) (diff)
downloadportage-multirepo-a082e60d36af81d908e1fa185032c5da1e270375.tar.gz
portage-multirepo-a082e60d36af81d908e1fa185032c5da1e270375.tar.bz2
portage-multirepo-a082e60d36af81d908e1fa185032c5da1e270375.zip
Use a ResolverPlayground.cleanup() method to cleanup temporary directories.
Diffstat (limited to 'pym/portage/tests/resolver/ResolverPlayground.py')
-rw-r--r--pym/portage/tests/resolver/ResolverPlayground.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/pym/portage/tests/resolver/ResolverPlayground.py b/pym/portage/tests/resolver/ResolverPlayground.py
index 643a3b61..9034deb8 100644
--- a/pym/portage/tests/resolver/ResolverPlayground.py
+++ b/pym/portage/tests/resolver/ResolverPlayground.py
@@ -2,6 +2,7 @@
# Distributed under the terms of the GNU General Public License v2
from itertools import chain
+import shutil
import tempfile
import portage
from portage import os
@@ -192,3 +193,6 @@ class ResolverPlayground(object):
else:
#TODO: Use mydepgraph.display_problems() to return a useful error message
return False, None
+
+ def cleanup(self):
+ shutil.rmtree(self.root)