diff options
author | John MacFarlane <jgm@berkeley.edu> | 2016-06-02 09:42:56 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2016-06-02 09:42:56 -0700 |
commit | 380f55f2b51729c6d602c5c2085632f09c0cb6db (patch) | |
tree | dbcc8331da8dbbb9876bca7f5104a27c69dc26eb /test | |
parent | 7e6612575a38cc73a3fc980ef105e83ff5896c4d (diff) |
spec_tests.py: specify newline when opening file.
Diffstat (limited to 'test')
-rwxr-xr-x | test/spec_tests.py | 2 |
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() |