Fixing broken tests

This commit is contained in:
Amjad Mashaal
2016-05-18 01:57:48 +02:00
parent 12a0312282
commit d57c943471
+3 -1
View File
@@ -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)
error = CalledProcessError(status, command)
error.output = out
raise error
return out, err