##// END OF EJS Templates
Give some informative information when irunner tests fail.
Thomas Kluyver -
Show More
@@ -33,6 +33,9 b' class RunnerTestCase(unittest.TestCase):'
33 out_l = [l for l in out.splitlines() if l and not l.isspace()]
33 out_l = [l for l in out.splitlines() if l and not l.isspace()]
34 mismatch = 0
34 mismatch = 0
35 if len(output_l) != len(out_l):
35 if len(output_l) != len(out_l):
36 print "\n".join(output_l)
37 print "==================="
38 print "\n".join(out_l)
36 self.fail('mismatch in number of lines')
39 self.fail('mismatch in number of lines')
37 for n in range(len(output_l)):
40 for n in range(len(output_l)):
38 # Do a line-by-line comparison
41 # Do a line-by-line comparison
General Comments 0
You need to be logged in to leave comments. Login now