summaryrefslogtreecommitdiff
path: root/test/DocTests.py
diff options
context:
space:
mode:
authorAlexis Hildebrandt <afh@surryhill.net>2015-02-18 21:33:22 +0100
committerAlexis Hildebrandt <afh@surryhill.net>2015-02-18 21:33:22 +0100
commitfde30f19774f9b933722f9bdf33cce59df129980 (patch)
treebd153dd254d2531b1a4da5f598237addf001440e /test/DocTests.py
parent3872eed477209ea3333b1252db557a5aa88911ac (diff)
downloadfork-ledger-fde30f19774f9b933722f9bdf33cce59df129980.tar.gz
fork-ledger-fde30f19774f9b933722f9bdf33cce59df129980.tar.bz2
fork-ledger-fde30f19774f9b933722f9bdf33cce59df129980.zip
[tests] Allow testing of multi-line examples
Diffstat (limited to 'test/DocTests.py')
-rwxr-xr-xtest/DocTests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/DocTests.py b/test/DocTests.py
index cbad9ca7..04241188 100755
--- a/test/DocTests.py
+++ b/test/DocTests.py
@@ -113,7 +113,7 @@ class DocTests:
else:
return None
- command = shlex.split(command)
+ command = filter(lambda x: x != '\n', shlex.split(command))
if command[0] == '$': command.remove('$')
index = command.index('ledger')
command[index] = self.ledger