From: Zac Medico Date: Tue, 31 Aug 2010 16:54:14 +0000 (-0700) Subject: Fix ResolverPlayground.cleanup() to cleanup the portdbapi instance. X-Git-Tag: v2.2_rc73~18 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=cd08c946dce4f9f5466597e92ce9df3b0ff197bd;p=portage.git Fix ResolverPlayground.cleanup() to cleanup the portdbapi instance. --- diff --git a/pym/portage/tests/resolver/ResolverPlayground.py b/pym/portage/tests/resolver/ResolverPlayground.py index 854ac43eb..1983b9e6e 100644 --- a/pym/portage/tests/resolver/ResolverPlayground.py +++ b/pym/portage/tests/resolver/ResolverPlayground.py @@ -333,6 +333,9 @@ class ResolverPlayground(object): return def cleanup(self): + portdb = self.trees[self.root]["porttree"].dbapi + portdb.close_caches() + portage.dbapi.porttree.portdbapi.portdbapi_instances.remove(portdb) if self.debug: print("\nEROOT=%s" % self.eroot) else: