[Zope3-dev] testInitDB fails

Guido van Rossum guido@python.org
Thu, 12 Dec 2002 15:54:46 -0500


> Jeremy Hylton wrote:
> > I'm currently seeing this error.  I know it's new, but I'm not sure
> > how to debug it.
> > 
> > Jeremy
> > 
> > ERROR: testInitDB (Zope.App.StartUp.tests.testStartupDirectives.Test)
> <deletia>
> > ComponentLookupError: ('service', 'Adapters')
> 
> The problem is that in SiteDefinition.py, line 205, 
> Zope.App.Traversing.traverse() is being called, and the test hasn't set 
> up an Adapters service, and hasn't registered an IPhysicallyLocatable 
> adapter with that service. This is required in order for the call to 
> traverse() to work.
> 
> Also, if the test is setting up things to do with global adapter 
> registries, the test class needs to derive from PlacelessSetup.
> 
> --
> Steve Alexander

This was my fault.  Should be fixed now.

--Guido van Rossum (home page: http://www.python.org/~guido/)