[Zope3-checkins] CVS: Zope3/src/zope/app/rdb/tests - test_sqlcommand.py:1.6

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


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

Modified Files:
	test_sqlcommand.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/rdb/tests/test_sqlcommand.py 1.5 => 1.6 ===
--- Zope3/src/zope/app/rdb/tests/test_sqlcommand.py:1.5	Wed Jun  4 06:46:37 2003
+++ Zope3/src/zope/app/rdb/tests/test_sqlcommand.py	Thu Nov 27 08:59:24 2003
@@ -62,10 +62,10 @@
         return ConnectionStub()
 
 
-class SQLCommandTest(unittest.TestCase, PlacelessSetup):
+class SQLCommandTest(PlacelessSetup, unittest.TestCase):
 
     def setUp(self):
-        PlacelessSetup.setUp(self)
+        super(SQLCommandTest, self).setUp()
         sm.defineService('SQLDatabaseConnections', IConnectionService)
         sm.provideService('SQLDatabaseConnections', ConnectionServiceStub())
         self._old_getNextServiceManager = nextservice.getNextServiceManager




More information about the Zope3-Checkins mailing list