changeset 15248:3efbb5e8bf5c

run-tests: end doctest block when seeing a non-command
author Idan Kamara <idankk86@gmail.com>
date Thu, 13 Oct 2011 17:54:37 +0200
parents 3cd1605e9d8e
children f30c0a7b8346
files tests/run-tests.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/run-tests.py	Thu Oct 13 17:54:35 2011 +0200
+++ b/tests/run-tests.py	Thu Oct 13 17:54:37 2011 +0200
@@ -525,7 +525,7 @@
     inblock = False
     for l in lines:
         if inblock:
-            if l.startswith('  $ '):
+            if l.startswith('  $ ') or not l.startswith('  '):
                 inblock = False
                 yield '  > EOF\n'
                 yield l