[Zope-CMF] Re: GenericSetup now incompatible with Zope 2.8?

Philipp von Weitershausen philipp at weitershausen.de
Wed Jun 7 03:48:27 EDT 2006


yuppie wrote:
> Jens Vagelpohl wrote:
>> This checkin seems to have broken Zope 2.8-compatibility:
>>
>> http://svn.zope.org/GenericSetup/trunk/tests/common.py?rev=68391&r1=41338&r2=68391
>>
>>
>> Specifically, the line "from zope.testing.cleanup import cleanUp"
>> breaks Zope 2.8, I checked all stable tags (2.8.5, 2.8.6, 2.8.7) and
>> there is no toplevel name "cleanUp" in zope.testing.cleanup.
>>
>> DEPENDENCIES.txt still claims it works with Zope 2.8.5 and higher. One
>> or the other needs changing, either DEPENDENCIES.txt needs updating
>> or, if this breakage was inadvertently introduced, common.py needs
>> fixing.
> 
> Sorry, my mistake. I only tested against Zope 2.9 and 2.10 before
> checking in.
> 
> Should be fixed now: http://svn.zope.org/?rev=68474&view=rev

Simply avoiding the cleanup in Zope 2.8 isn't a proper fix. You should
instead do the  following (which works across all Zopes):

  from zope.testing.cleanup import CleanUp
  CleanUp().cleanUp()



More information about the Zope-CMF mailing list