[Zope3-checkins] CVS: ZODB4/src/zodb/zeo/tests - connection.py:1.10
Jeremy Hylton
jeremy@zope.com
Fri, 20 Jun 2003 11:17:00 -0400
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())