From cd08c946dce4f9f5466597e92ce9df3b0ff197bd Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 31 Aug 2010 09:54:14 -0700 Subject: Fix ResolverPlayground.cleanup() to cleanup the portdbapi instance. --- pym/portage/tests/resolver/ResolverPlayground.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pym') 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: -- cgit v1.2.3-1-g7c22