tests/run-tests.py
branchstable
changeset 923 8212da2b01eb
parent 921 abb2a67ce631
child 926 f4903069a215
equal deleted inserted replaced
921:abb2a67ce631 923:8212da2b01eb
   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"""