From 0e691e76dbd928b4aa919cbb9788c805e34937dc Mon Sep 17 00:00:00 2001 From: Evan Mallory Date: Thu, 22 Sep 2016 18:51:10 -0400 Subject: Fix test harness to work with msys2 With this change, 97% of the tests pass. See the build on appveyor for more info: https://ci.appveyor.com/project/Evan/ledger/build/build-49 I'll follow up with another PR to fix some of the remaining broken tests --- test/DocTests.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/DocTests.py') diff --git a/test/DocTests.py b/test/DocTests.py index 7af7abc3..52632a7b 100755 --- a/test/DocTests.py +++ b/test/DocTests.py @@ -192,6 +192,8 @@ class DocTests: error = None try: verify = subprocess.check_output(command, stderr=subprocess.STDOUT) + if sys.platform == 'win32': + verify = verify.replace('\r\n', '\n') valid = (output == verify) or (not error and validation) except subprocess.CalledProcessError, e: error = e.output -- cgit v1.2.3