summaryrefslogtreecommitdiff
path: root/test/RegressTests.py
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2010-06-19 16:06:15 -0400
committerJohn Wiegley <johnw@newartisans.com>2010-06-19 16:06:15 -0400
commitb819475a9346bedf31fd25e67dc2640ff6431141 (patch)
treec6712368662a4051f41d8cdd95f8cab5dfae9307 /test/RegressTests.py
parentb589829646ececc31adadeb223435ccc2bb716c3 (diff)
downloadfork-ledger-b819475a9346bedf31fd25e67dc2640ff6431141.tar.gz
fork-ledger-b819475a9346bedf31fd25e67dc2640ff6431141.tar.bz2
fork-ledger-b819475a9346bedf31fd25e67dc2640ff6431141.zip
Fix to the way simplified regressions tests are read
Diffstat (limited to 'test/RegressTests.py')
-rwxr-xr-xtest/RegressTests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/RegressTests.py b/test/RegressTests.py
index 0472ac90..73a05d52 100755
--- a/test/RegressTests.py
+++ b/test/RegressTests.py
@@ -52,7 +52,7 @@ class RegressFile(object):
def read_section(self):
lines = []
line = self.fd.readline()
- while not self.is_directive(line):
+ while line and not self.is_directive(line):
lines.append(self.transform_line(line))
line = self.fd.readline()
return (lines, line)