Fixing auto_test.py for Python 2.6

This commit is contained in:
Amjad Mashaal
2016-05-18 01:57:48 +02:00
parent 248dc0962e
commit 12a0312282
+2 -2
View File
@@ -11,7 +11,7 @@ from shutil import copy, rmtree
import socket
import ssl
from stat import S_IRUSR, S_IXUSR
from subprocess import CalledProcessError, check_output, Popen, PIPE
from subprocess import CalledProcessError, Popen, PIPE
import sys
from tempfile import mkdtemp
from threading import Thread
@@ -146,7 +146,7 @@ def out_and_err(command, input=None, shell=False, env=None):
out, err = process.communicate(input=input)
status = process.poll() # same as in check_output(), though wait() sounds better
if status:
raise CalledProcessError(status, command, output=out)
raise CalledProcessError(status, command)
return out, err