Re: [Zope-CMF] Re: [dev] failing tests and other unit test issues

2005-04-05 Thread Dieter Maurer
yuppie wrote at 2005-4-4 20:59 +0200:
 ...
2.) I prefer to see the correct import in each file and to use utils 
just for the fallback.

But, then you get a nasty try: ... except: in hundred of
files rather than just a single one.

-- 
Dieter
___
Zope-CMF maillist  -  Zope-CMF@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See http://collector.zope.org/CMF for bug reports and feature requests


[Zope-CMF] Re: [dev] failing tests and other unit test issues

2005-04-04 Thread Sidnei da Silva
| Good question ;)
| 
| All I know is that
| 
| - CMF uses that pattern in all test files
| 
| - 'Products.CMFCore.foo' seems to work with any testing setup
| 
| - with my setup 'CMFCore.foo' doesn't work if I run tests outside test.py

Sorry, I meant instead of the try: except, just import from
Products.CMFCore.tests.utils as there's another try:except in there.

-- 
Sidnei da Silva [EMAIL PROTECTED]
http://awkly.org - dreamcatching :: making your dreams come true
http://www.enfoldsystems.com
http://plone.org/about/team#dreamcatcher

Mais informado que gerente de funerária.
___
Zope-CMF maillist  -  Zope-CMF@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See http://collector.zope.org/CMF for bug reports and feature requests