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