[CMF-checkins] SVN: CMF/branches/2.0/DCWorkflow/tests/test_guard.py Proper warning filtering, as zope.tales.tales exists in old zopes too.

Florent Guillaume fg at nuxeo.com
Fri Jun 9 10:36:39 EDT 2006


Log message for revision 68544:
  Proper warning filtering, as zope.tales.tales exists in old zopes too.
  

Changed:
  U   CMF/branches/2.0/DCWorkflow/tests/test_guard.py

-=-
Modified: CMF/branches/2.0/DCWorkflow/tests/test_guard.py
===================================================================
--- CMF/branches/2.0/DCWorkflow/tests/test_guard.py	2006-06-09 14:36:25 UTC (rev 68543)
+++ CMF/branches/2.0/DCWorkflow/tests/test_guard.py	2006-06-09 14:36:39 UTC (rev 68544)
@@ -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



More information about the CMF-checkins mailing list