[Zodb-checkins] CVS: ZODB3/ZEO/tests - testZEO.py:1.38
Guido van Rossum
guido@python.org
Tue, 17 Sep 2002 00:09:07 -0400
Update of /cvs-repository/ZODB3/ZEO/tests
In directory cvs.zope.org:/tmp/cvs-serv5977
Modified Files:
testZEO.py
Log Message:
Add INFO log messages in _startServer and shutdownServer, both flavors.
=== ZODB3/ZEO/tests/testZEO.py 1.37 => 1.38 ===
--- ZODB3/ZEO/tests/testZEO.py:1.37 Sun Sep 15 00:31:42 2002
+++ ZODB3/ZEO/tests/testZEO.py Tue Sep 17 00:09:06 2002
@@ -487,6 +487,9 @@
class UnixConnectionTests(ConnectionTests):
def _startServer(self, create=1, index=0, read_only=0):
+ zLOG.LOG("testZEO", zLOG.INFO,
+ "_startServer(create=%d, index=%d, read_only=%d)" %
+ (create, index, read_only))
path = "%s.%d" % (self.file, index)
addr = self.addr[index]
pid, server = forker.start_zeo_server('FileStorage',
@@ -495,6 +498,7 @@
self._servers.append(server)
def shutdownServer(self, index=0):
+ zLOG.LOG("testZEO", zLOG.INFO, "shutdownServer(index=%d)" % index)
self._servers[index].close()
if self._pids[index] is not None:
try:
@@ -506,6 +510,9 @@
class WindowsConnectionTests(ConnectionTests):
def _startServer(self, create=1, index=0, read_only=0):
+ zLOG.LOG("testZEO", zLOG.INFO,
+ "_startServer(create=%d, index=%d, read_only=%d)" %
+ (create, index, read_only))
path = "%s.%d" % (self.file, index)
addr = self.addr[index]
args = (path, '='+str(create), '='+str(read_only))
@@ -515,6 +522,7 @@
self._servers.append(test_addr)
def shutdownServer(self, index=0):
+ zLOG.LOG("testZEO", zLOG.INFO, "shutdownServer(index=%d)" % index)
if self._servers[index] is not None:
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect(self._servers[index])