diff options
author | Alexis Hildebrandt <afh@surryhill.net> | 2015-02-18 21:33:22 +0100 |
---|---|---|
committer | Alexis Hildebrandt <afh@surryhill.net> | 2015-02-18 21:33:22 +0100 |
commit | fde30f19774f9b933722f9bdf33cce59df129980 (patch) | |
tree | bd153dd254d2531b1a4da5f598237addf001440e /test/DocTests.py | |
parent | 3872eed477209ea3333b1252db557a5aa88911ac (diff) | |
download | fork-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-x | test/DocTests.py | 2 |
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 |