summaryrefslogtreecommitdiff
path: root/tests/pexpectTest.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pexpectTest.py')
-rwxr-xr-xtests/pexpectTest.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/pexpectTest.py b/tests/pexpectTest.py
index 62ac422..613e9a9 100755
--- a/tests/pexpectTest.py
+++ b/tests/pexpectTest.py
@@ -38,11 +38,11 @@ def getProcessResults(cmd, timeLimit=20):
# newlines can show up as '\r\n' so we kill any '\r's which
# will mess up the formatting for the viewer
output += child.read_nonblocking(timeout=timeLimit).replace("\r","")
- except pexpect.EOF, e:
+ except pexpect.EOF as e:
print str(e)
# process terminated normally
break
- except pexpect.TIMEOUT, e:
+ except pexpect.TIMEOUT as e:
print str(e)
output += "\nProcess aborted by FlashTest after %s seconds.\n" % timeLimit
print child.isalive()