[Zodb-checkins] CVS: StandaloneZODB/ZEO/tests - testStart.py:1.2

Jeremy Hylton jeremy@zope.com
Mon, 5 Aug 2002 15:57:56 -0400


Update of /cvs-repository/StandaloneZODB/ZEO/tests
In directory cvs.zope.org:/tmp/cvs-serv32151

Modified Files:
	testStart.py 
Log Message:
Call keys() on dict.  It won't be iterable until 2.3.


=== StandaloneZODB/ZEO/tests/testStart.py 1.1 => 1.2 ===
 
     def kill(self, sig=signal.SIGTERM, pids=None):
         if pids is None:
-            pids = self.pids
+            pids = self.pids.keys()
         for pid in pids:
             try:
                 os.kill(pid, sig)
@@ -67,9 +67,9 @@
 
     def wait(self, flag=0, pids=None):
         if pids is None:
-            pids = self.pids
+            pids = self.pids.keys()
         alive = []
-        for pid in self.pids:
+        for pid in pids:
             try:
                 _pid, status = os.waitpid(pid, flag)
             except os.error, err: