diff options
author | Martin Michlmayr <tbm@cyrius.com> | 2014-12-03 17:20:00 -0500 |
---|---|---|
committer | Martin Michlmayr <tbm@cyrius.com> | 2014-12-03 17:20:00 -0500 |
commit | a65815607ff9648cd27d00de5551f5caad12314f (patch) | |
tree | b125c47f884d1a4b0021e7df6f9d51702e253778 /test | |
parent | f238d993fb28cc328b86f0f3dde60f4eb3065980 (diff) | |
parent | 936c3f0434c6a23286081aaced0738912135604f (diff) | |
download | fork-ledger-a65815607ff9648cd27d00de5551f5caad12314f.tar.gz fork-ledger-a65815607ff9648cd27d00de5551f5caad12314f.tar.bz2 fork-ledger-a65815607ff9648cd27d00de5551f5caad12314f.zip |
Merge pull request #337 from afh/pull/DocTest
Fix DocTests running in non-standard width terminal
Diffstat (limited to 'test')
-rwxr-xr-x | test/DocTests.py | 5 |
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: |