summaryrefslogtreecommitdiff
path: root/test/DocTests.py
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2016-09-29 09:59:06 -0700
committerGitHub <noreply@github.com>2016-09-29 09:59:06 -0700
commitcd58d43228996198b5ba329f7c05109f2aaee65a (patch)
tree62166e8ec93573e1a5b6312e721fb5c24bfc18fc /test/DocTests.py
parent258cab91ab702e82d477b41bb1c6a026c848bda5 (diff)
parent0e691e76dbd928b4aa919cbb9788c805e34937dc (diff)
downloadledger-cd58d43228996198b5ba329f7c05109f2aaee65a.tar.gz
ledger-cd58d43228996198b5ba329f7c05109f2aaee65a.tar.bz2
ledger-cd58d43228996198b5ba329f7c05109f2aaee65a.zip
Merge pull request #467 from schmave/win-2
Fix test harness to work with msys2
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