[Zope-Coders] Problem with importing ZCatalog in 2.7

Shane Hathaway shane@zope.com
Wed, 23 Apr 2003 15:50:47 -0400


Andreas Jung wrote:
> 
> 
> --On Mittwoch, 23. April 2003 15:39 Uhr -0400 Shane Hathaway 
> <shane@zope.com> wrote:
> 
> 
>>
>> import Zope
>> Zope.startup()
>>
>> It's safe to put that at the top of a test module that depends heavily on
>> Zope.
> 
> 
> Hmmm...wasn't there a recommendation to "Import ZODB" instead of
> "import Zope"? I am a bit confused :-)

You should import only ZODB if the code you're testing depends only on 
ZODB.  ZCatalog depends on large swaths of Zope, so its tests can import 
Zope.

Shane