[Zope-dev] Re: Unittests with different zope configuration?

Andreas Jung lists at zopyx.com
Wed Jun 7 08:41:55 EDT 2006



--On 7. Juni 2006 14:28:03 +0200 Florent Guillaume <fg at nuxeo.com> wrote:

> Stefan H. Holek wrote:
>> I use this to set debug-mode off:
>>
>>     # Switch off debug mode
>>     import App.config
>>     config = App.config.getConfiguration()
>>     config.debug_mode = 0
>>     App.config.setConfiguration(config)
>
> The setConfiguration() is probably unnecessary, you're modifying a
> mutable datastructure.

Probably unnecessary but one should not depend on an implementation
detail in this case.

-aj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope-dev/attachments/20060607/6f6649a7/attachment.bin


More information about the Zope-Dev mailing list