summaryrefslogtreecommitdiff
path: root/test/regress.py
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-20 14:40:33 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-20 15:41:49 -0400
commit40f2ff6d6f7902c4957e0710a5a9d09c1f49ad1e (patch)
tree1acf02e4fffb46649e06d537451fe26ee988916e /test/regress.py
parent42f94d2b8bcbc58abd5e09c0c1e98b8dd167552b (diff)
downloadfork-ledger-40f2ff6d6f7902c4957e0710a5a9d09c1f49ad1e.tar.gz
fork-ledger-40f2ff6d6f7902c4957e0710a5a9d09c1f49ad1e.tar.bz2
fork-ledger-40f2ff6d6f7902c4957e0710a5a9d09c1f49ad1e.zip
Added several new regression tests
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