[CMF-checkins] SVN: CMF/branches/1.6/CMFCore/tests/test_PortalContent.py Suppress known deprecation warning in test output.

Tres Seaver tseaver at palladion.com
Tue Apr 24 16:13:49 EDT 2007


Log message for revision 74719:
  Suppress known deprecation warning in test output.

Changed:
  U   CMF/branches/1.6/CMFCore/tests/test_PortalContent.py

-=-
Modified: CMF/branches/1.6/CMFCore/tests/test_PortalContent.py
===================================================================
--- CMF/branches/1.6/CMFCore/tests/test_PortalContent.py	2007-04-24 19:18:30 UTC (rev 74718)
+++ CMF/branches/1.6/CMFCore/tests/test_PortalContent.py	2007-04-24 20:13:48 UTC (rev 74719)
@@ -36,12 +36,13 @@
 from Products.CMFCore.tests.base.dummy import DummySite
 from Products.CMFCore.tests.base.dummy import DummyUserFolder
 from Products.CMFCore.tests.base.testcase import SecurityRequestTest
+from Products.CMFCore.tests.base.testcase import WarningInterceptor
 from Products.CMFCore.tests.base.dummy import DummyTool
 from Products.CMFCore.tests.base.dummy import DummyContent
 from Products.CMFCore.tests.base.dummy import DummyObject
 from OFS.Folder import Folder
 
-class PortalContentTests(TestCase):
+class PortalContentTests(TestCase, WarningInterceptor):
 
     def test_z2interfaces(self):
         from Interface.Verify import verifyClass
@@ -88,6 +89,7 @@
         # in unfixed version fail here with AttributeError
         # can end up with this arrangement using _getAliases though
         # in fixed version, falls through to _getViewFor, which is BBB
+        self._trap_warning_output()
         self.assertEqual( ob(), 'dummy' )
 
     def test_BlankDefaultAlias(self):
@@ -96,6 +98,7 @@
                        )
         ob = self._setupCallTests(test_aliases)
         # blank default is BBB
+        self._trap_warning_output()
         self.assertEqual( ob(), 'dummy' )
 
     def test_SpecificAlias(self):



More information about the CMF-checkins mailing list