[Zope3-checkins] CVS: zopeproducts/NewsSite/tests - test_newssiteview.py:1.3

Jim Fulton jim@zope.com
Thu, 3 Jul 2003 13:20:52 -0400


Update of /cvs-repository/zopeproducts/NewsSite/tests
In directory cvs.zope.org:/tmp/cvs-serv18925

Modified Files:
	test_newssiteview.py 
Log Message:
Made the setup work with Python 2.2 by not using super.
Python 2.3 is needed to use super, because unittest.TestCase is not a
new-style class in Python 2.2.


=== zopeproducts/NewsSite/tests/test_newssiteview.py 1.2 => 1.3 ===
--- zopeproducts/NewsSite/tests/test_newssiteview.py:1.2	Wed Jun 25 11:30:35 2003
+++ zopeproducts/NewsSite/tests/test_newssiteview.py	Thu Jul  3 13:20:46 2003
@@ -79,8 +79,10 @@
 class TestNewsSiteView(PlacelessSetup, unittest.TestCase):
 
     def setUp(self):
-        super(TestNewsSiteView, self).setUp()
-        provideAdapter(IAttributeAnnotatable, IContentFilterAdapter, FilterAdapter)
+        PlacelessSetup.setUp(self)
+        provideAdapter(IAttributeAnnotatable,
+                       IContentFilterAdapter,
+                       FilterAdapter)
 
     def _getTargetClass(self):
         from zopeproducts.NewsSite.newssite import NewsSiteView