[CMF-checkins] CVS: Products/CMFCore/tests -
test_TypesTool.py:1.33.2.2
Yvo Schubbe
y.2004_ at wcm-solutions.de
Sun Sep 12 13:10:49 EDT 2004
Update of /cvs-repository/Products/CMFCore/tests
In directory cvs.zope.org:/tmp/cvs-serv31307/CMFCore/tests
Modified Files:
Tag: yuppie-post_1_5-cleanup-branch
test_TypesTool.py
Log Message:
- removed deprecated meta_type dependent code
=== Products/CMFCore/tests/test_TypesTool.py 1.33.2.1 => 1.33.2.2 ===
--- Products/CMFCore/tests/test_TypesTool.py:1.33.2.1 Fri Sep 10 11:41:57 2004
+++ Products/CMFCore/tests/test_TypesTool.py Sun Sep 12 13:10:49 2004
@@ -4,9 +4,6 @@
Zope.startup()
from Interface.Verify import verifyClass
-from warnings import filterwarnings
-from warnings import filters
-
from AccessControl import Unauthorized
from AccessControl.SecurityManagement import newSecurityManager
from AccessControl.SecurityManagement import noSecurityManager
@@ -46,18 +43,12 @@
def setUp( self ):
SecurityTest.setUp(self)
- filterwarnings('ignore', category=DeprecationWarning)
self.site = DummySite('site').__of__(self.root)
self.acl_users = self.site._setObject( 'acl_users', DummyUserFolder() )
self.ttool = self.site._setObject( 'portal_types', TypesTool() )
fti = FTIDATA_DUMMY[0].copy()
self.ttool._setObject( 'Dummy Content', FTI(**fti) )
- def tearDown(self):
- del filters[0]
-
- SecurityTest.tearDown(self)
-
def test_allMetaTypes(self):
"""
Test that everything returned by allMetaTypes can be
@@ -116,12 +107,6 @@
class TypeInfoTests(TestCase):
-
- def setUp(self):
- filterwarnings('ignore', category=DeprecationWarning)
-
- def tearDown(self):
- del filters[0]
def test_construction( self ):
ti = self._makeInstance( 'Foo'
More information about the CMF-checkins
mailing list