From 1048d00a474bce8b56c96f78899b4e572f564ed4 Mon Sep 17 00:00:00 2001 From: William Deegan Date: Fri, 2 Nov 2018 09:07:14 -0400 Subject: fix a couple tests broken by binary write in wrapper.py. previously compared against string with native os.linesep --- test/SWIG/live.py | 2 +- test/YACC/live.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/SWIG/live.py b/test/SWIG/live.py index a64defe..e01597d 100644 --- a/test/SWIG/live.py +++ b/test/SWIG/live.py @@ -145,7 +145,7 @@ test.up_to_date(arguments = ldmodule_prefix+'foo' + _dll) test.run(arguments = ldmodule_prefix+'bar' + _dll) -test.must_match('wrapper.out', "wrapper.py" + os.linesep) +test.must_match('wrapper.out', "wrapper.py\n") test.run(program = python, stdin = """\ from __future__ import print_function diff --git a/test/YACC/live.py b/test/YACC/live.py index 35f6c37..a79d3db 100644 --- a/test/YACC/live.py +++ b/test/YACC/live.py @@ -158,7 +158,7 @@ test.run(arguments = 'bar' + _exe) test.up_to_date(arguments = 'bar' + _exe) -test.must_match(test.workpath('wrapper.out'), "wrapper.py" + os.linesep) +test.must_match(test.workpath('wrapper.out'), "wrapper.py\n") test.run(program = test.workpath('bar'), stdin = "b\n", stdout = "bar.y\n") -- cgit v0.12