aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2016-06-02 09:42:56 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2016-06-02 09:42:56 -0700
commit380f55f2b51729c6d602c5c2085632f09c0cb6db (patch)
treedbcc8331da8dbbb9876bca7f5104a27c69dc26eb
parent7e6612575a38cc73a3fc980ef105e83ff5896c4d (diff)
spec_tests.py: specify newline when opening file.
-rwxr-xr-xtest/spec_tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/spec_tests.py b/test/spec_tests.py
index d5b4d05..1521a82 100755
--- a/test/spec_tests.py
+++ b/test/spec_tests.py
@@ -87,7 +87,7 @@ def get_tests(specfile):
header_re = re.compile('#+ ')
- with open(specfile, 'r', encoding='utf-8') as specf:
+ with open(specfile, 'r', encoding='utf-8', newline='\n') as specf:
for line in specf:
line_number = line_number + 1
l = line.strip()