Log message for revision 68543:
Proper warning filtering, as zope.tales.tales exists in old zopes too.
Changed:
U CMF/branches/1.6/DCWorkflow/tests/test_guard.py
-=-
Modified: CMF/branches/1.6/DCWorkflow/tests/test_guard.py
===================================================================
--- CMF/branches/1.6/DCWorkflow/tests/test_guard.py 2006-06-09 13:53:44 UTC
(rev 68542)
+++ CMF/branches/1.6/DCWorkflow/tests/test_guard.py 2006-06-09 14:36:25 UTC
(rev 68543)
@@ -17,14 +17,11 @@
import unittest
import Testing
+import warnings
from AccessControl import getSecurityManager
-try:
- from zope.tales.tales import CompilerError
-except ImportError:
- # BBB: Zope < 2.10
- from Products.PageTemplates.TALES import CompilerError
-
+warnings.filterwarnings('ignore', "Products.PageTemplates.TALES has moved")
+from Products.PageTemplates.TALES import CompilerError
from Products.CMFCore.tests.base.dummy import DummyContent
from Products.CMFCore.tests.base.dummy import DummySite
from Products.CMFCore.tests.base.dummy import DummyTool
_______________________________________________
CMF-checkins mailing list
[email protected]
http://mail.zope.org/mailman/listinfo/cmf-checkins