Fix ResolverPlayground.cleanup() to cleanup the portdbapi instance.
authorZac Medico <zmedico@gentoo.org>
Tue, 31 Aug 2010 16:54:14 +0000 (09:54 -0700)
committerZac Medico <zmedico@gentoo.org>
Tue, 31 Aug 2010 16:54:14 +0000 (09:54 -0700)
pym/portage/tests/resolver/ResolverPlayground.py

index 854ac43eb7f5c57bfab99153697683f33e1125d7..1983b9e6e4350d97f2bc17dfc5cbce50356f45f3 100644 (file)
@@ -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: