get a better error message from travis
@@ -73,7 +73,15 @@ def test_format_pep8():
try:
out = shell_call(['pylint', '--rcfile', rcpath, f])
except subprocess.CalledProcessError as e:
+ try:
bad_out = bad_out + "\n" + e.output
+ except TypeError:
+ endline_type_str = str(type("\n"))
+ raise TypeError(("Could not add: bad_out (type %s), "
+ "endline char (type %s), "
+ " and e.output (type %s)") %
+ (str(type(bad_out)), endline_type_str,
+ str(type(e.output))))
if len(bad_out) > 0:
raise ValueError(bad_out)
