summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)