From 40f2ff6d6f7902c4957e0710a5a9d09c1f49ad1e Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 20 Feb 2009 14:40:33 -0400 Subject: Added several new regression tests --- test/regress.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'test/regress.py') diff --git a/test/regress.py b/test/regress.py index e8da3f93..43cdef32 100755 --- a/test/regress.py +++ b/test/regress.py @@ -91,7 +91,12 @@ def test_regression(test_file): printed = False index = 0 - for line in difflib.unified_diff(error, p.stderr.readlines()): + lines = p.stderr.readlines() + if len(lines) > 0: + while re.match('While (parsing file|balancing entry from)', lines[0]): + lines = lines[1:] + error = error[1:] + for line in difflib.unified_diff(error, lines): index += 1 if index < 3: continue -- cgit v1.2.3