diff options
author | jquast <contact@jeffquast.com> | 2013-09-22 17:22:10 -0700 |
---|---|---|
committer | jquast <contact@jeffquast.com> | 2013-09-22 17:22:10 -0700 |
commit | db27d565f984da5fd39639e1004839928a0c4688 (patch) | |
tree | 58f691db32153abc7f9c2b9f2560fb25d9177636 /tests/pexpectTest.py | |
parent | 011b050db75a4560883501c1240d96f98d45a1c9 (diff) | |
download | pexpect-git-db27d565f984da5fd39639e1004839928a0c4688.tar.gz |
use print() as a function
this is in preperation of removing the print_function from future feature for python2.5, so that the test cases can at least be begun to run ..
Diffstat (limited to 'tests/pexpectTest.py')
-rwxr-xr-x | tests/pexpectTest.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/pexpectTest.py b/tests/pexpectTest.py index 613e9a9..c080d7e 100755 --- a/tests/pexpectTest.py +++ b/tests/pexpectTest.py @@ -39,13 +39,13 @@ def getProcessResults(cmd, timeLimit=20): # will mess up the formatting for the viewer output += child.read_nonblocking(timeout=timeLimit).replace("\r","") except pexpect.EOF as e: - print str(e) + print(str(e)) # process terminated normally break except pexpect.TIMEOUT as e: - print str(e) + print(str(e)) output += "\nProcess aborted by FlashTest after %s seconds.\n" % timeLimit - print child.isalive() + print(child.isalive()) child.kill(9) break @@ -61,7 +61,7 @@ cmd = "./ticker.py" result, duration, exitStatus = getProcessResults(cmd) -print "result: %s" % result -print "duration: %s" % duration -print "exit-status: %s" % exitStatus +print("result: %s" % result) +print("duration: %s" % duration) +print("exit-status: %s" % exitStatus) |