Author: gnichols Date: 2009-12-22 18:01:33 +0000 (Tue, 22 Dec 2009) New Revision: 277
Modified: trunk/tests/memory/memory.py Log: 484657 - hts uses code deprecated in python 2.6
Modified: trunk/tests/memory/memory.py =================================================================== --- trunk/tests/memory/memory.py 2009-12-22 18:01:07 UTC (rev 276) +++ trunk/tests/memory/memory.py 2009-12-22 18:01:33 UTC (rev 277) @@ -21,7 +21,6 @@ import sys import re import time -import popen2
# sys.path.append("/home/gnichols/devel/v7") from v7.tags import Constants, DeviceClass @@ -182,7 +181,8 @@ if self.mode == Constants.self: command = "echo 'Self Test Mode - would have run %s'" % command for i in range(number): - pipe.append(popen2.Popen4(command)) + commandPipe = Command(command).run() + pipe.append(Command(command).pipe) print "Started: process %u pid %u: %s" % (i, pipe[i].pid, command) sys.stdout.flush() waiting = True @@ -191,7 +191,7 @@ for i in range(number): if pipe[i]: found = True - line = pipe[i].fromchild.readline() + line = pipe[i].stdout.readline() if line and len(line) > 1: print "process %u pid %u: %s" % (i, pipe[i].pid, line) sys.stdout.flush()
v7-commits@lists.stg.fedorahosted.org