From 848ca96890db32eb98d44765886853bed626a4ee Mon Sep 17 00:00:00 2001 From: Nick Wellnhofer Date: Sat, 26 Mar 2016 16:24:56 +0100 Subject: Add first regression tests I think it's a good idea to add tests after fixing bugs. This is really easy using the spec test infrastructure. --- test/spec_tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/spec_tests.py') 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