equal
deleted
inserted
replaced
301 failed.append(line[len(FAILED_PREFIX):]) |
301 failed.append(line[len(FAILED_PREFIX):]) |
302 |
302 |
303 return missing, failed |
303 return missing, failed |
304 |
304 |
305 def showdiff(expected, output, ref, err): |
305 def showdiff(expected, output, ref, err): |
|
306 print |
306 for line in difflib.unified_diff(expected, output, ref, err): |
307 for line in difflib.unified_diff(expected, output, ref, err): |
307 sys.stdout.write(line) |
308 sys.stdout.write(line) |
308 |
309 |
309 def findprogram(program): |
310 def findprogram(program): |
310 """Search PATH for a executable program""" |
311 """Search PATH for a executable program""" |