[Zope3-checkins] CVS: Zope3/src/zope/app/pagetemplate/tests - test_binding.py:1.9 test_directives.py:1.8

Philipp von Weitershausen cvs-admin at zope.org
Thu Nov 27 08:59:53 EST 2003


Update of /cvs-repository/Zope3/src/zope/app/pagetemplate/tests
In directory cvs.zope.org:/tmp/cvs-serv22470/pagetemplate/tests

Modified Files:
	test_binding.py test_directives.py 
Log Message:
Use super in test setUp methods. We can do this now because TestCase
(finally!) is a new-style class Python 2.3.


=== Zope3/src/zope/app/pagetemplate/tests/test_binding.py 1.8 => 1.9 ===
--- Zope3/src/zope/app/pagetemplate/tests/test_binding.py:1.8	Fri Nov 21 12:12:09 2003
+++ Zope3/src/zope/app/pagetemplate/tests/test_binding.py	Thu Nov 27 08:59:22 2003
@@ -31,7 +31,7 @@
 class BindingTestCase(PlacelessSetup, unittest.TestCase):
 
     def setUp(self):
-        PlacelessSetup.setUp(self)
+        super(BindingTestCase, self).setUp()
         ztapi.provideAdapter(None, ITraverser, Traverser)
         ztapi.provideAdapter(None, ITraversable, DefaultTraversable)
 


=== Zope3/src/zope/app/pagetemplate/tests/test_directives.py 1.7 => 1.8 ===
--- Zope3/src/zope/app/pagetemplate/tests/test_directives.py:1.7	Fri Nov 21 12:12:09 2003
+++ Zope3/src/zope/app/pagetemplate/tests/test_directives.py	Thu Nov 27 08:59:22 2003
@@ -59,7 +59,7 @@
     # XXX: tests for other directives needed
 
     def setUp(self):
-        PlacelessSetup.setUp(self)
+        super(Test, self).setUp()
         XMLConfig('meta.zcml', zope.app.pagetemplate)()
 
     def testTalesAPI1(self):




More information about the Zope3-Checkins mailing list