tests/run-tests.py
changeset 924 08aeedc73cb7
parent 923 8212da2b01eb
child 926 f4903069a215
equal deleted inserted replaced
922:702ca6f80844 924:08aeedc73cb7
   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"""