mirror of
https://github.com/certbot/certbot.git
synced 2026-07-27 00:00:44 +02:00
Merge pull request #2926 from TheNavigat/auto_test_fix
Fixing auto_test.py for Python 2.6
This commit is contained in:
@@ -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,9 @@ 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)
|
||||
error = CalledProcessError(status, command)
|
||||
error.output = out
|
||||
raise error
|
||||
return out, err
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user