summaryrefslogtreecommitdiff
path: root/test/DocTests.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/DocTests.py')
-rwxr-xr-xtest/DocTests.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/DocTests.py b/test/DocTests.py
index d2931686..be28fae1 100755
--- a/test/DocTests.py
+++ b/test/DocTests.py
@@ -114,8 +114,9 @@ class DocTests:
if command[0] == '$': command.remove('$')
index = command.index('ledger')
command[index] = self.ledger
- command.insert(index+1, '--init-file')
- command.insert(index+2, '/dev/null')
+ for i,argument in enumerate('--init-file /dev/null --columns 80'.split()):
+ command.insert(index+i+1, argument)
+
try:
findex = command.index('-f')
except ValueError: