Commit 9ecb4717 authored by Jeremy Hylton's avatar Jeremy Hylton

Call keys() on dict. It won't be iterable until 2.3.

parent 4134c7b4
...@@ -58,7 +58,7 @@ class StartTests(unittest.TestCase): ...@@ -58,7 +58,7 @@ class StartTests(unittest.TestCase):
def kill(self, sig=signal.SIGTERM, pids=None): def kill(self, sig=signal.SIGTERM, pids=None):
if pids is None: if pids is None:
pids = self.pids pids = self.pids.keys()
for pid in pids: for pid in pids:
try: try:
os.kill(pid, sig) os.kill(pid, sig)
...@@ -67,9 +67,9 @@ class StartTests(unittest.TestCase): ...@@ -67,9 +67,9 @@ class StartTests(unittest.TestCase):
def wait(self, flag=0, pids=None): def wait(self, flag=0, pids=None):
if pids is None: if pids is None:
pids = self.pids pids = self.pids.keys()
alive = [] alive = []
for pid in self.pids: for pid in pids:
try: try:
_pid, status = os.waitpid(pid, flag) _pid, status = os.waitpid(pid, flag)
except os.error, err: except os.error, err:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment