diff tests/run-tests.py @ 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 4fae5df4b1bb
children ec50fe3f7a76
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