Remove usage of readlines()

Change-Id: I6c3ecd36a340d1ba682565bb9e6138d1f06cdabf
This commit is contained in:
Christian Berendt
2014-07-29 10:02:16 +02:00
parent 64c10516e8
commit a131e9b5a8

View File

@@ -154,7 +154,7 @@ class ServiceLauncherTest(ServiceTestBase):
f.readline()
processes = [tuple(int(p) for p in l.strip().split()[:2])
for l in f.readlines()]
for l in f]
return [p for p, pp in processes if pp == self.pid]
def test_killed_worker_recover(self):