From dddb66d41d1fe57be4ec41c20cca4fdaa916a0c0 2011-04-10 11:22:37 From: Thomas Kluyver Date: 2011-04-10 11:22:37 Subject: [PATCH] Give some informative information when irunner tests fail. --- diff --git a/IPython/lib/tests/test_irunner.py b/IPython/lib/tests/test_irunner.py index 1ca1f7a..5a800bc 100755 --- a/IPython/lib/tests/test_irunner.py +++ b/IPython/lib/tests/test_irunner.py @@ -33,6 +33,9 @@ class RunnerTestCase(unittest.TestCase): out_l = [l for l in out.splitlines() if l and not l.isspace()] mismatch = 0 if len(output_l) != len(out_l): + print "\n".join(output_l) + print "===================" + print "\n".join(out_l) self.fail('mismatch in number of lines') for n in range(len(output_l)): # Do a line-by-line comparison