summaryrefslogtreecommitdiff
path: root/test/DocTests.py
diff options
context:
space:
mode:
authorEvan Mallory <schmave@gmail.com>2016-09-22 18:51:10 -0400
committerEvan Mallory <schmave@gmail.com>2016-09-23 08:14:30 -0400
commit0e691e76dbd928b4aa919cbb9788c805e34937dc (patch)
tree31b4d0c6a09c6e33b1c67b943dbff79adf14bd6a /test/DocTests.py
parent132156766770da8340138aab117cf7e37787403c (diff)
downloadfork-ledger-0e691e76dbd928b4aa919cbb9788c805e34937dc.tar.gz
fork-ledger-0e691e76dbd928b4aa919cbb9788c805e34937dc.tar.bz2
fork-ledger-0e691e76dbd928b4aa919cbb9788c805e34937dc.zip
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
Diffstat (limited to 'test/DocTests.py')
-rwxr-xr-xtest/DocTests.py2
1 files changed, 2 insertions, 0 deletions
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