From 380f55f2b51729c6d602c5c2085632f09c0cb6db Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Thu, 2 Jun 2016 09:42:56 -0700 Subject: spec_tests.py: specify newline when opening file. --- test/spec_tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') 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() -- cgit v1.2.3