[Zodb-checkins] SVN: ZODB/trunk/src/ZEO/tests/ConnectionTests.py Removed the pid cleanup code. The subprocess module does this for us.

Jim Fulton jim at zope.com
Tue Nov 18 20:45:09 EST 2008


Log message for revision 93121:
  Removed the pid cleanup code. The subprocess module does this for us.
  

Changed:
  U   ZODB/trunk/src/ZEO/tests/ConnectionTests.py

-=-
Modified: ZODB/trunk/src/ZEO/tests/ConnectionTests.py
===================================================================
--- ZODB/trunk/src/ZEO/tests/ConnectionTests.py	2008-11-19 01:45:07 UTC (rev 93120)
+++ ZODB/trunk/src/ZEO/tests/ConnectionTests.py	2008-11-19 01:45:09 UTC (rev 93121)
@@ -104,7 +104,6 @@
         logging.info("setUp() %s", self.id())
         self.file = 'storage_conf'
         self.addr = []
-        self._pids = []
         self._servers = []
         self.conf_paths = []
         self.caches = []
@@ -133,10 +132,6 @@
         for adminaddr in self._servers:
             if adminaddr is not None:
                 forker.shutdown_zeo_server(adminaddr)
-        if hasattr(os, 'waitpid'):
-            # Not in Windows Python until 2.3
-            for pid in self._pids:
-                os.waitpid(pid, 0)
         for c in self.caches:
             for i in 0, 1:
                 for ext in "", ".trace", ".lock":
@@ -219,7 +214,6 @@
         zeoport, adminaddr, pid, path = forker.start_zeo_server(
             sconf, zconf, addr[1], keep)
         self.conf_paths.append(path)
-        self._pids.append(pid)
         self._servers.append(adminaddr)
 
     def shutdownServer(self, index=0):



More information about the Zodb-checkins mailing list