From fde30f19774f9b933722f9bdf33cce59df129980 Mon Sep 17 00:00:00 2001 From: Alexis Hildebrandt Date: Wed, 18 Feb 2015 21:33:22 +0100 Subject: [tests] Allow testing of multi-line examples --- test/DocTests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/DocTests.py') 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 -- cgit v1.2.3