[Zodb-checkins] CVS: ZODB4/src/zodb/zeo/tests - connection.py:1.10

Jeremy Hylton jeremy at zope.com
Fri Jun 20 12:17:00 EDT 2003


Update of /cvs-repository/ZODB4/src/zodb/zeo/tests
In directory cvs.zope.org:/tmp/cvs-serv17153/zeo/tests

Modified Files:
	connection.py 
Log Message:
Make StorageTestBase a new-style class and use super().


=== ZODB4/src/zodb/zeo/tests/connection.py 1.9 => 1.10 ===
--- ZODB4/src/zodb/zeo/tests/connection.py:1.9	Thu Jun 19 17:41:07 2003
+++ ZODB4/src/zodb/zeo/tests/connection.py	Fri Jun 20 11:16:59 2003
@@ -63,9 +63,6 @@
 class CommonSetupTearDown(StorageTestBase):
     """Common boilerplate"""
 
-    __super_setUp = StorageTestBase.setUp
-    __super_tearDown = StorageTestBase.tearDown
-
     keep = 0
     invq = None
     timeout = None
@@ -79,7 +76,7 @@
         calling self._newAddr() and then self.startServer(index=i)
         for i in 1, 2, ...
         """
-        self.__super_setUp()
+        super(CommonSetupTearDown, self).setUp()
         self.logger = logging.getLogger("testZEO")
         self.logger.warn("setUp() %s", self.id())
         self.file = tempfile.mktemp()
@@ -128,7 +125,7 @@
                             break
                 if need_to_delete:
                     os.unlink(path)  # sometimes this is just gonna fail
-        self.__super_tearDown()
+        super(CommonSetupTearDown, self).tearDown()
 
     def _newAddr(self):
         self.addr.append(self._getAddr())




More information about the Zodb-checkins mailing list