summaryrefslogtreecommitdiff
path: root/test/regress.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/regress.py')
-rwxr-xr-xtest/regress.py7
1 files changed, 6 insertions, 1 deletions
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